Permalink
Browse files

Add chain loaders

  • Loading branch information...
Justin-Credible committed Aug 14, 2016
1 parent 557e896 commit c4b45805df55b4bed0046a5aa315b4873e571659
Showing with 108 additions and 108 deletions.
  1. +1 −53 index.android.js
  2. +1 −53 index.ios.js
  3. +0 −2 src/main.ts
  4. +53 −0 src/root.android.tsx
  5. +53 −0 src/root.ios.tsx
View
@@ -1,53 +1 @@
-/**
- * Sample React Native App
- * https://github.com/facebook/react-native
- * @flow
- */
-
-import React, { Component } from 'react';
-import {
- AppRegistry,
- StyleSheet,
- Text,
- View
-} from 'react-native';
-
-class SampleApp1 extends Component {
- render() {
- return (
- <View style={styles.container}>
- <Text style={styles.welcome}>
- Welcome to React Native!
- </Text>
- <Text style={styles.instructions}>
- To get started, edit index.android.js
- </Text>
- <Text style={styles.instructions}>
- Double tap R on your keyboard to reload,{'\n'}
- Shake or press menu button for dev menu
- </Text>
- </View>
- );
- }
-}
-
-const 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,
- },
-});
-
-AppRegistry.registerComponent('SampleApp1', () => SampleApp1);
+require("./artifacts/root.android.js");
View
@@ -1,53 +1 @@
-/**
- * Sample React Native App
- * https://github.com/facebook/react-native
- * @flow
- */
-
-import React, { Component } from 'react';
-import {
- AppRegistry,
- StyleSheet,
- Text,
- View
-} from 'react-native';
-
-class SampleApp1 extends Component {
- render() {
- return (
- <View style={styles.container}>
- <Text style={styles.welcome}>
- Welcome to React Native!
- </Text>
- <Text style={styles.instructions}>
- To get started, edit index.ios.js
- </Text>
- <Text style={styles.instructions}>
- Press Cmd+R to reload,{'\n'}
- Cmd+D or shake for dev menu
- </Text>
- </View>
- );
- }
-}
-
-const 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,
- },
-});
-
-AppRegistry.registerComponent('SampleApp1', () => SampleApp1);
+require("./artifacts/root.ios.js");
View
@@ -1,2 +0,0 @@
-
-console.log("Hello World!");
View
@@ -0,0 +1,53 @@
+/**
+ * Sample React Native App
+ * https://github.com/facebook/react-native
+ * @flow
+ */
+
+import React, { Component } from 'react';
+import {
+ AppRegistry,
+ StyleSheet,
+ Text,
+ View
+} from 'react-native';
+
+class SampleApp1 extends Component {
+ render() {
+ return (
+ <View style={styles.container}>
+ <Text style={styles.welcome}>
+ Welcome to React Native!
+ </Text>
+ <Text style={styles.instructions}>
+ To get started, edit index.android.js
+ </Text>
+ <Text style={styles.instructions}>
+ Double tap R on your keyboard to reload,{'\n'}
+ Shake or press menu button for dev menu
+ </Text>
+ </View>
+ );
+ }
+}
+
+const 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,
+ },
+});
+
+AppRegistry.registerComponent('SampleApp1', () => SampleApp1);
View
@@ -0,0 +1,53 @@
+/**
+ * Sample React Native App
+ * https://github.com/facebook/react-native
+ * @flow
+ */
+
+import React, { Component } from 'react';
+import {
+ AppRegistry,
+ StyleSheet,
+ Text,
+ View
+} from 'react-native';
+
+class SampleApp1 extends Component {
+ render() {
+ return (
+ <View style={styles.container}>
+ <Text style={styles.welcome}>
+ Welcome to React Native!
+ </Text>
+ <Text style={styles.instructions}>
+ To get started, edit index.ios.js
+ </Text>
+ <Text style={styles.instructions}>
+ Press Cmd+R to reload,{'\n'}
+ Cmd+D or shake for dev menu
+ </Text>
+ </View>
+ );
+ }
+}
+
+const 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,
+ },
+});
+
+AppRegistry.registerComponent('SampleApp1', () => SampleApp1);

0 comments on commit c4b4580

Please sign in to comment.