Skip to content

Instantly share code, notes, and snippets.

@ShanikaNishadhi
Created November 19, 2020 22:14
Show Gist options
  • Save ShanikaNishadhi/7b33de17b5892ac82d67a323cec394f4 to your computer and use it in GitHub Desktop.
Save ShanikaNishadhi/7b33de17b5892ac82d67a323cec394f4 to your computer and use it in GitHub Desktop.
class App extends Component {
render() {
return (
<View style={styles.container}>
<RNCamera
style={{ flex: 1, alignItems: 'center' }}
ref={ref => {
this.camera = ref
}}
/>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
backgroundColor: 'black'
}
})
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment