Created
January 6, 2016 22:14
-
-
Save jemise111/c34a50c2d2185203192f 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
'use strict'; | |
import React from 'react-native'; | |
const { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View | |
} = React; | |
class ReactNativeExample extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text style={styles.text}> | |
{this.props.content} | |
</Text> | |
</View> | |
); | |
} | |
} | |
var styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
justifyContent: 'center', | |
alignItems: 'center' | |
}, | |
text: { | |
fontSize: 24 | |
} | |
}); | |
AppRegistry.registerComponent('ReactNativeExample', () => ReactNativeExample); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment