()
| 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({ |
nothing calls this directly
no outgoing calls
no test coverage detected