Created
May 30, 2017 03:40
-
-
Save ridgeO/e5cdec6d8e9e32008fd5a044c98a74e5 to your computer and use it in GitHub Desktop.
Code snippet from ReactNav application as featured in http://platypus.is/posts/4
This file contains hidden or 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
# App.js | |
'use strict'; | |
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
View, | |
Text | |
} from 'react-native'; | |
import styles from './Styles.js'; | |
class ReactNav extends Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text>Hello World</Text> | |
</View> | |
); | |
} | |
} | |
AppRegistry.registerComponent('ReactNav', () => ReactNav); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment