Skip to content

Instantly share code, notes, and snippets.

@topherPedersen
Created August 31, 2020 16:28
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 topherPedersen/cd183f224334087b61ad4a6fcf9987ab to your computer and use it in GitHub Desktop.
Save topherPedersen/cd183f224334087b61ad4a6fcf9987ab to your computer and use it in GitHub Desktop.
React-Native TypeScript Class Component Template
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';
class App extends React.Component<{}, {}> {
constructor(props: any) {
super(props);
}
render() {
return(
<SafeAreaView style={style.container}>
<Text>React-Native TypeScript Class Component Template</Text>
</SafeAreaView>
);
}
}
const style = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
flex: 100,
},
});
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment