Skip to content

Instantly share code, notes, and snippets.

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