Skip to content

Instantly share code, notes, and snippets.

@csorlandi
Created June 7, 2018 13:15
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 csorlandi/cbefcfa3515f4b1c93e4aca9cdf30823 to your computer and use it in GitHub Desktop.
Save csorlandi/cbefcfa3515f4b1c93e4aca9cdf30823 to your computer and use it in GitHub Desktop.
takePicture = async () => {
if (this.camera) {
const options = { quality: 0.5, base64: true };
const data = await this.camera.takePictureAsync(options)
alert(data.uri);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment