37
15
React
class AwesomeComponent extends Component {
render() {
return (
![]()
Welcome to React Native!
);
}
}
const styles = StyleSheet.create({
container: {
alignItems: 'center',
flex: 1,
flexDirection: 'row',
justifyContent: 'center',
},
image: {
height: 60,
marginRight: 20,
width: 60,
},
text: {
color: '#05A5D1'
},
});
AppRegistry.registerComponent('AwesomeComponent', () => AwesomeComponent);