Created
January 20, 2019 11:23
-
-
Save joevo2/51d6f483d74c2b44f3f2b1006acafe53 to your computer and use it in GitHub Desktop.
Tutorial
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
import React from "react"; | |
import { View, StyleSheet, ScrollView, Text } from "react-native"; | |
export default class HomeScreen extends React.Component { | |
static navigationOptions = { | |
title: "Spending" | |
}; | |
render() { | |
return ( | |
<View style={styles.container}> | |
<ScrollView | |
style={styles.container} | |
contentContainerStyle={styles.contentContainer} | |
> | |
<Text>Hello World</Text> | |
</ScrollView> | |
</View> | |
); | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: "#fff" | |
}, | |
contentContainer: { | |
paddingTop: 30 | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment