/* Note: This must be compiled with the target set to ES6 The content of index.io.js could be something like 'use strict'; import { AppRegistry } from 'react-native' import Welcome from './gen/Welcome' AppRegistry.registerComponent('MopNative', () => Welcome); For a list of complete Typescript examples: check https://github.com/bgrieder/RNTSExplorer */ /// import * as React from 'react-native' const { StyleSheet, Text, View } = React var styles = StyleSheet.create( { container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, } ) class Welcome extends React.Component { render() { return ( Welcome to React Native To get started, edit index.ios.js Press Cmd+R to reload,{'\n'} Cmd+D or shake for dev menu ) } } export default Welcome