Created
June 15, 2018 02:03
-
-
Save dceddia/b0f55898cfbe0164f631b3ca6642cacf to your computer and use it in GitHub Desktop.
Creating the Autoshoot component to render the Camera.
This file contains hidden or 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
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