Browse Source

fix iOS example project

Ran Greenberg 8 years ago
parent
commit
5d602d9035
3 changed files with 26 additions and 1 deletions
  1. 1
    1
      example/index.android.js
  2. 0
    0
      example/src/app.android.js
  3. 25
    0
      example/src/app.ios.js

+ 1
- 1
example/index.android.js View File

@@ -1 +1 @@
1
-import App from './src/app';
1
+import App from './src/app.android';

example/src/app.js → example/src/app.android.js View File


+ 25
- 0
example/src/app.ios.js View File

@@ -0,0 +1,25 @@
1
+import {Navigation} from 'react-native-navigation';
2
+
3
+// screen related book keeping
4
+import {registerScreens} from './screens';
5
+registerScreens();
6
+
7
+// this will start our app
8
+Navigation.startSingleScreenApp({
9
+  screen: {
10
+    screen: 'example.FirstTabScreen',
11
+    title: 'Login',
12
+    navigatorStyle: {
13
+      navBarBackgroundColor: '#4dbce9',
14
+      navBarTextColor: '#ffff00',
15
+      navBarSubtitleTextColor: '#ff0000',
16
+      navBarButtonColor: '#ffffff',
17
+      statusBarTextColorScheme: 'light'
18
+    }
19
+  },
20
+  drawer: {
21
+    left: {
22
+      screen: 'example.SideMenu'
23
+    }
24
+  }
25
+});