Skip to content

Instantly share code, notes, and snippets.

@joevo2
Created January 20, 2019 11:23
Show Gist options
  • Save joevo2/51d6f483d74c2b44f3f2b1006acafe53 to your computer and use it in GitHub Desktop.
Save joevo2/51d6f483d74c2b44f3f2b1006acafe53 to your computer and use it in GitHub Desktop.
Tutorial
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