Created
January 21, 2017 07:22
-
-
Save shamdasani/1f856d645dc25b093c6013a4d7ed6502 to your computer and use it in GitHub Desktop.
This file contains 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
import React, { Component } from 'react'; | |
import { View } from 'react-native'; | |
import { Text } from 'react-native-elements'; | |
import Camera from 'react-native-camera'; | |
class Home extends Component { | |
render () { | |
return ( | |
<View> | |
<Camera | |
ref={(cam) => { | |
this.camera = cam; | |
}} | |
aspect={Camera.constants.Aspect.fit}> | |
</Camera> | |
</View> | |
); | |
} | |
} | |
export default Home; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment