Commit 8ae74f2

mo khan <mo@mokhan.ca>
2016-12-22 19:02:57
move app to app/index.js
1 parent 2f947b2
app/components/application-shell.js → app/index.js
@@ -1,9 +1,9 @@
 import React, { Component } from 'react';
 import { Navigator } from 'react-native';
-import LoginScreen from '../screens/login-screen';
-import WireUpComponentsInto from '../boot/wire-up-components-into';
+import LoginScreen from './screens/login-screen';
+import WireUpComponentsInto from './boot/wire-up-components-into';
 
-export default class ApplicationShell extends Component {
+export default class App extends Component {
   constructor(props) {
     super(props);
     this.registry = new WireUpComponentsInto().run();
index.android.js
@@ -1,5 +1,5 @@
 import React, { Component } from 'react';
 import { AppRegistry, StyleSheet } from 'react-native';
-import ApplicationShell from './app/components/application-shell'
+import App from './app'
 
-AppRegistry.registerComponent('AwesomeProject', () => ApplicationShell);
+AppRegistry.registerComponent('AwesomeProject', () => App);
index.ios.js
@@ -1,5 +1,5 @@
 import React, { Component } from 'react';
 import { AppRegistry, StyleSheet } from 'react-native';
-import ApplicationShell from './app/components/application-shell'
+import App from './app'
 
-AppRegistry.registerComponent('AwesomeProject', () => ApplicationShell);
+AppRegistry.registerComponent('AwesomeProject', () => App);