MCPcopy Create free account
hub / github.com/VadimNotJustDev/SignalClone / pickImage

Function pickImage

components/MessageInput/MessageInput.tsx:157–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156 // Image picker
157 const pickImage = async () => {
158 const result = await ImagePicker.launchImageLibraryAsync({
159 mediaTypes: ImagePicker.MediaTypeOptions.Images,
160 allowsEditing: true,
161 aspect: [4, 3],
162 quality: 0.5,
163 });
164
165 if (!result.cancelled) {
166 setImage(result.uri);
167 }
168 };
169
170 const takePhoto = async () => {
171 const result = await ImagePicker.launchCameraAsync({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected