Skip to content

Instantly share code, notes, and snippets.

@jemise111
Created January 6, 2016 22:14
Show Gist options
  • Save jemise111/c34a50c2d2185203192f to your computer and use it in GitHub Desktop.
Save jemise111/c34a50c2d2185203192f to your computer and use it in GitHub Desktop.
'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