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/b0f55898cfbe0164f631b3ca6642cacf to your computer and use it in GitHub Desktop.
Save dceddia/b0f55898cfbe0164f631b3ca6642cacf to your computer and use it in GitHub Desktop.
Creating the Autoshoot component to render the Camera.
class Autoshoot extends React.Component {
render() {
return (
<View style={{ flex: 1, width: '100%' }}>
<Camera
style={{ flex: 1 }}
type={Camera.Constants.Type.back}
ref={cam => this.camera = cam}>
</Camera>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment