-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
executable file
·48 lines (44 loc) · 1008 Bytes
/
App.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
47
48
import {
createBottomTabNavigator,
createStackNavigator,
} from 'react-navigation';
import tabBarIcon from './utils/tabBarIcon';
import FeedScreen from './screens/FeedScreen';
import NewPostScreen from './screens/NewPostScreen';
import SelectPhotoScreen from './screens/SelectPhotoScreen';
const navigator = createBottomTabNavigator(
{
History: {
screen: FeedScreen,
navigationOptions: {
tabBarIcon: tabBarIcon('archive'),
},
},
Photo: {
screen: SelectPhotoScreen,
navigationOptions: {
tabBarIcon: tabBarIcon('add-circle'),
},
},
},
{
tabBarOptions: {
showLabel: false,
activeTintColor: 'black',
inactiveTintColor: 'gray',
},
},
);
const stackNavigator = createStackNavigator(
{
Main: {
screen: navigator,
navigationOptions: { title: 'car-oof 🚘' },
},
NewPost: NewPostScreen,
},
{
cardStyle: { backgroundColor: 'white' },
},
);
export default stackNavigator;