Created
April 19, 2018 17:44
-
-
Save rodolfopeixoto/34c51f09d9658e74b6a2db836ce0588f 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, | |
Text, | |
TouchableOpacity, | |
Image, | |
YellowBox | |
} from 'react-native'; | |
import { STYLES } from './style'; | |
import { CAMERA_ICON } from './../../config/images'; | |
export default class ProfileScreen extends Component{ | |
constructor(props) { | |
super(props); | |
YellowBox.ignoreWarnings([ | |
'Warning: componentWillMount is deprecated', | |
'Warning: componentWillReceiveProps is deprecated', | |
]); | |
} | |
cameraNavigation(){ | |
this.props.navigation.navigate('CameraScreen'); | |
} | |
render(){ | |
return( | |
<View style={{flex: 1}}> | |
<View style={STYLES.imageBackground}></View> | |
<TouchableOpacity | |
style={STYLES.circle} | |
onPress={ () => this.cameraNavigation() }> | |
<Image | |
style={STYLES.cameraIcon} | |
source={ CAMERA_ICON } | |
/> | |
</TouchableOpacity> | |
<View> | |
</View> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment