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/9952955173ea93de6f942135d237adac to your computer and use it in GitHub Desktop.
Save dceddia/9952955173ea93de6f942135d237adac to your computer and use it in GitHub Desktop.
Using Autoshoot inside App
render() {
const { cameraPermission } = this.state;
// Render one of 3 things depending on permissions
return (
<View style={styles.container}>
{cameraPermission === null ? (
<Text>Waiting for permission...</Text>
) : cameraPermission === false ? (
<Text>Permission denied</Text>
) : (
<Autoshoot/>
)}
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment