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

Function takePhoto

components/MessageInput/MessageInput.tsx:170–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 };
169
170 const takePhoto = async () => {
171 const result = await ImagePicker.launchCameraAsync({
172 mediaTypes: ImagePicker.MediaTypeOptions.Images,
173 aspect: [4, 3],
174 });
175
176 if (!result.cancelled) {
177 setImage(result.uri);
178 }
179 };
180
181 const progressCallback = (progress) => {
182 setProgress(progress.loaded / progress.total);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected