Skip to content

Instantly share code, notes, and snippets.

@streetsmartdev
Created September 2, 2017 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save streetsmartdev/88f8f92858741a4d18f048e08849cd2f to your computer and use it in GitHub Desktop.
Save streetsmartdev/88f8f92858741a4d18f048e08849cd2f to your computer and use it in GitHub Desktop.
RN-RNav- 2 - HomeScreen implementation
import React from "react";
import {StyleSheet, Text, View} from "react-native";
class HomeScreen extends React.Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.title}>React navigator - Home</Text>
</View>
);
}
}
HomeScreen.navigationOptions = {
title: "Home"
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
title: {
fontSize: 20,
textAlign: 'center',
margin: 10,
}
});
export default HomeScreen;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment