Last active
December 25, 2017 03:22
-
-
Save Pranit-Harekar/931ef83be03fa9ef749d9b360ce1fb91 to your computer and use it in GitHub Desktop.
Demo TypeScript Setup
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 * as React from "react"; | |
| import { StyleSheet, Text, View } from "react-native"; | |
| export default class App extends React.Component { | |
| render() { | |
| return ( | |
| <View style={styles.container}> | |
| <Text style={styles.welcome}>Welcome to React Native with TypeScript!</Text> | |
| </View> | |
| ); | |
| } | |
| } | |
| const styles = StyleSheet.create({ | |
| container: { | |
| flex: 1, | |
| justifyContent: "center", | |
| alignItems: "center", | |
| backgroundColor: "#F5FCFF" | |
| }, | |
| welcome: { | |
| fontSize: 20, | |
| textAlign: "center", | |
| margin: 10 | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment