Created
March 2, 2016 01:22
-
-
Save vagmi/972cc58d4408645607d7 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, { | |
requireNativeComponent, | |
Text, | |
View | |
} from 'react-native'; | |
var CustomRNView = requireNativeComponent('CustomRNView',null); | |
var styles = React.StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: "#ffefef", | |
padding: 8 | |
} | |
}); | |
class SimpleApp extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text>This is a React Native app.</Text> | |
<CustomRNView message="message will be"/> | |
</View> | |
) | |
} | |
} | |
React.AppRegistry.registerComponent('SimpleApp', () => SimpleApp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment