Skip to content

Instantly share code, notes, and snippets.

@Wellers0n
Created June 4, 2019 22:50
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 Wellers0n/e3a284a96cd62edb9af0d7379fd52298 to your computer and use it in GitHub Desktop.
Save Wellers0n/e3a284a96cd62edb9af0d7379fd52298 to your computer and use it in GitHub Desktop.
classScreen
import React from "react";
import { StyleSheet, Text, View } from "react-native";
export default class ClassScreen extends React.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