Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created November 19, 2019 15:09
Show Gist options
  • Save amandeepmittal/349149141e36d887f8745c760595fd6e to your computer and use it in GitHub Desktop.
Save amandeepmittal/349149141e36d887f8745c760595fd6e to your computer and use it in GitHub Desktop.
//App.js
import React, { Component } from 'react'
import { StyleSheet, Text, View } from 'react-native'
class App extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.header}>
<Text style={styles.headerText}>Headlines App</Text>
</View>
<View style={styles.contentContainer}>
<Text>Open up App.js to start working on your app!</Text>
</View>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff'
},
header: {
marginTop: 50,
alignItems: 'center',
borderBottomWidth: StyleSheet.hairlineWidth
},
headerText: {
marginBottom: 5,
fontSize: 30,
fontWeight: 'bold'
},
contentContainer: {
marginTop: 30,
alignItems: 'center',
justifyContent: 'center'
}
})
export default App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment