Created
June 4, 2019 23:21
-
-
Save Wellers0n/bc66c705f2f805417b3dd09598c84aff to your computer and use it in GitHub Desktop.
classStatic.js
This file contains hidden or 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 { StyleSheet, Text, View } from "react-native"; | |
export default class ClassScreen extends React.Component { | |
static navigationOptions = { | |
Title: "Class component" | |
}; | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text>Class component!</Text> | |
</View> | |
); | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: "#fff", | |
alignItems: "center", | |
justifyContent: "center" | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment