Created
August 31, 2020 16:28
-
-
Save topherPedersen/cd183f224334087b61ad4a6fcf9987ab to your computer and use it in GitHub Desktop.
React-Native TypeScript Class Component Template
This file contains 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 { | |
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