Skip to content

Instantly share code, notes, and snippets.

@vagmi
Created March 2, 2016 01:22
Show Gist options
  • Save vagmi/972cc58d4408645607d7 to your computer and use it in GitHub Desktop.
Save vagmi/972cc58d4408645607d7 to your computer and use it in GitHub Desktop.
'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