Skip to content

Instantly share code, notes, and snippets.

@dceddia
Created June 15, 2018 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dceddia/c322a07c93c8e6be81aff1d8f514e715 to your computer and use it in GitHub Desktop.
Save dceddia/c322a07c93c8e6be81aff1d8f514e715 to your computer and use it in GitHub Desktop.
Add the takePicture method
takePicture = () => {
this.camera.takePictureAsync({
quality: 0.1,
base64: true,
exif: false
}).then(photo => {
this.setState({ photo });
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment