Skip to content

Instantly share code, notes, and snippets.

@lopezjurip
Last active March 22, 2017 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lopezjurip/0cac24a205bbd6bc5c9cee9fede0977d to your computer and use it in GitHub Desktop.
Save lopezjurip/0cac24a205bbd6bc5c9cee9fede0977d to your computer and use it in GitHub Desktop.
// src/index.ts
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
interface Props {
}
interface State {
}
export default class App extends Component<Props, State> {
render() {
return (
<View style={styles.container}>
<Text style={styles.text}>
Welcome to React Native!
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
} as React.ViewStyle,
text: {
fontSize: 20,
textAlign: 'center',
margin: 10,
} as React.TextStyle,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment