Skip to content

Instantly share code, notes, and snippets.

@rodolfopeixoto
Created April 19, 2018 17:44
Show Gist options
  • Save rodolfopeixoto/34c51f09d9658e74b6a2db836ce0588f to your computer and use it in GitHub Desktop.
Save rodolfopeixoto/34c51f09d9658e74b6a2db836ce0588f to your computer and use it in GitHub Desktop.
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