Skip to content

Instantly share code, notes, and snippets.

@streetsmartdev
Created September 2, 2017 17:29
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/075cc904e27d9228e43b3c30696c8e06 to your computer and use it in GitHub Desktop.
Save streetsmartdev/075cc904e27d9228e43b3c30696c8e06 to your computer and use it in GitHub Desktop.
RN-RNav- 5 - AboutScreen implementation
import React from "react";
import {StyleSheet, Text, View} from "react-native";
class AboutScreen extends React.Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.title}>React navigator - About</Text>
</View>
);
}
}
AboutScreen.navigationOptions = {
title: "About"
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
title: {
fontSize: 20,
textAlign: 'center',
margin: 10,
}
});
export default AboutScreen;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment