|
@@ -3,51 +3,32 @@ import {
|
3
|
3
|
AppRegistry,
|
4
|
4
|
View
|
5
|
5
|
} from 'react-native';
|
6
|
|
-import { Navigation } from 'react-native-navigation';
|
|
6
|
+import {Navigation} from 'react-native-navigation';
|
7
|
7
|
|
8
|
8
|
// screen related book keeping
|
9
|
|
-import { registerScreens } from './screens';
|
|
9
|
+import {registerScreens} from './screens';
|
10
|
10
|
registerScreens();
|
11
|
11
|
|
12
|
12
|
// this will start our app
|
13
|
|
-Navigation.startTabBasedApp({
|
14
|
|
- tabs: [
|
15
|
|
- {
|
16
|
|
- label: 'One',
|
17
|
|
- screen: 'example.FirstTabScreen',
|
18
|
|
- icon: require('../img/one.png'),
|
19
|
|
- selectedIcon: require('../img/one_selected.png'),
|
20
|
|
- title: 'Screen One'
|
21
|
|
- },
|
22
|
|
- {
|
23
|
|
- label: 'Two',
|
24
|
|
- screen: 'example.SecondTabScreen',
|
25
|
|
- icon: require('../img/two.png'),
|
26
|
|
- selectedIcon: require('../img/two_selected.png'),
|
27
|
|
- title: 'Screen Two'
|
28
|
|
- },
|
29
|
|
- {
|
30
|
|
- label: 'Three',
|
31
|
|
- screen: 'example.ThirdTabScreen',
|
32
|
|
- icon: require('../img/three.png'),
|
33
|
|
- selectedIcon: require('../img/three_selected.png'),
|
34
|
|
- title: 'Screen Three',
|
35
|
|
- navigatorStyle: {
|
36
|
|
- navBarBackgroundColor: '#4dbce9',
|
37
|
|
- navBarTextColor: '#ffff00',
|
38
|
|
- navBarButtonColor: '#ffffff',
|
39
|
|
- statusBarTextColorScheme: 'light'
|
40
|
|
- }
|
|
13
|
+Navigation.startSingleScreenApp({
|
|
14
|
+ screen: {
|
|
15
|
+ screen: 'example.FirstTabScreen',
|
|
16
|
+ title: 'Login',
|
|
17
|
+ navigatorStyle: {
|
|
18
|
+ navBarBackgroundColor: '#4dbce9',
|
|
19
|
+ navBarTextColor: '#ffff00',
|
|
20
|
+ navBarButtonColor: '#ffffff',
|
|
21
|
+ statusBarTextColorScheme: 'light'
|
41
|
22
|
}
|
42
|
|
- ],
|
43
|
|
- // tabsStyle: {
|
44
|
|
- // tabBarButtonColor: '#ffff00',
|
45
|
|
- // tabBarSelectedButtonColor: '#ff9900',
|
46
|
|
- // tabBarBackgroundColor: '#551A8B'
|
47
|
|
- // },
|
|
23
|
+ },
|
48
|
24
|
drawer: {
|
49
|
25
|
left: {
|
50
|
26
|
screen: 'example.SideMenu'
|
51
|
27
|
}
|
52
|
28
|
}
|
|
29
|
+ // tabsStyle: {
|
|
30
|
+ // tabBarButtonColor: '#ffff00',
|
|
31
|
+ // tabBarSelectedButtonColor: '#ff9900',
|
|
32
|
+ // tabBarBackgroundColor: '#551A8B'
|
|
33
|
+ // },
|
53
|
34
|
});
|