import React, { Component } from 'react';
import {
    StyleSheet,
    Text,
    View
} from 'react-native';

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,
});

export default class App extends Component<any, any> {
  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.text}>
          Welcome to React Native!
        </Text>
      </View>
    );
  }
};
