-
-
Save calincrist/404619fb72bc56905147d0cbe4a94ea4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/screens/Camera.js | |
// …imports | |
const CameraScreen = ({ … }) => { | |
const { navigate } = useNavigation(); | |
const takePicture = async () => { | |
if (this.camera) { | |
// … | |
Analytics.logEvent("add_image", { | |
"take_picture": true, | |
"camera_roll": false | |
}); | |
navigate('ImagesList'); | |
} | |
} | |
return ( | |
// … | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment