Skip to content

Instantly share code, notes, and snippets.

@mczernek
Created March 11, 2019 19:13
Show Gist options
  • Save mczernek/4a3594c73b0fb19578ea03dd79893879 to your computer and use it in GitHub Desktop.
Save mczernek/4a3594c73b0fb19578ea03dd79893879 to your computer and use it in GitHub Desktop.
import * as React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { Constants } from 'expo';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.paragraph}>
Hello world!
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
paddingTop: Constants.statusBarHeight,
backgroundColor: '#ecf0f1',
padding: 8,
},
paragraph: {
margin: 24,
fontSize: 18,
fontWeight: 'bold',
textAlign: 'center',
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment