-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ios.js
46 lines (42 loc) · 1.03 KB
/
index.ios.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React, { Component } from 'react';
import {
AppRegistry,
Platform
} from 'react-native';
import { Navigation } from 'react-native-navigation';
import { registerViews } from './views';
registerViews(); // register all of the app's screens
const createTabs = () => {
let tabs = [
{
label: 'Now',
screen: 'feelio.NowScreen',
icon: require('./img/now.png'),
selectedIcon: require('./img/now_selected.png'),
title: 'Now'
},
{
label: 'Later',
screen: 'feelio.TodayScreen',
icon: require('./img/today.png'),
selectedIcon: require('./img/today_selected.png'),
title: 'Later'
}
];
return tabs;
};
// this will start our app
Navigation.startTabBasedApp({
tabs: createTabs(),
tabsStyle: { // for Android, use appStyle
tabBarBackgroundColor: '#142233',
tabBarButtonColor: 'white',
tabBarSelectedButtonColor: 'white'
},
drawer: {
left: {
screen: 'feelio.Settings'
}
}
});
AppRegistry.registerComponent('feelioIosApp', () => feelioIosApp);