Skip to content

Instantly share code, notes, and snippets.

@akbarsha03
Created April 5, 2018 11:22
Show Gist options
  • Save akbarsha03/6626cc0477ae56edf46890cea542c807 to your computer and use it in GitHub Desktop.
Save akbarsha03/6626cc0477ae56edf46890cea542c807 to your computer and use it in GitHub Desktop.
import React from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up index.js to start working on your app!</Text>
<Text>Changes you make will automatically reload.</Text>
<Text>Shake your phone to open the developer menu.</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
AppRegistry.registerComponent('sampleReactApp', () => App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment