-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
37 lines (33 loc) · 1.26 KB
/
Copy pathApp.js
File metadata and controls
37 lines (33 loc) · 1.26 KB
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
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import HomeContainer from './app/Containers/HomeContainer.js';
import SettingsContainer from './app/Containers/SettingsContainer.js';
import PopularContainer from './app/Containers/PopularContainer.js';
import SavedContainer from './app/Containers/SavedContainer.js';
import SummaryContainer from './app/Containers/SummaryContainer.js';
import { StackNavigator, TabNavigator, TabBarBottom } from 'react-navigation';
export default TabNavigator({
Home: { screen: HomeContainer },
Popular: { screen: PopularContainer },
Saved: { screen: SavedContainer },
Settings: { screen: SettingsContainer},
},
{
navigationOptions: ({ navigation }) => ({
tabBarIcon: ({ focused, tintColor }) => {
const { routeName } = navigation.state;
// You can return any component that you like here! We usually use an
// icon component from react-native-vector-icons
// return <Ionicons size={25} color={tintColor} />;
},
}),
tabBarComponent: TabBarBottom,
tabBarPosition: 'bottom',
tabBarOptions: {
activeTintColor: 'tomato',
inactiveTintColor: 'gray',
},
animationEnabled: false,
swipeEnabled: false,
}
);