/* 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); NOTE: I (Bruno Grieder) complete these definitions as I port the UI Explorer to Typescript If you are in a hurry for the latest definitions, or are looking for typescript examples, check https://github.com/bgrieder/RNTSExplorer */ /// import 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