-
-
Save amandeepmittal/349149141e36d887f8745c760595fd6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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