Created
March 2, 2016 00:51
-
-
Save vagmi/59839f2a49f5aeee684e 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, { | |
Text, | |
View | |
} from 'react-native'; | |
var styles = React.StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: 'gray' | |
} | |
}); | |
class SimpleApp extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text>This is a React Native app</Text> | |
</View> | |
) | |
} | |
} | |
React.AppRegistry.registerComponent('SimpleApp', () => SimpleApp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment