AppTabContainer.js
1.2 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
37
38
39
40
41
42
43
44
import React from 'react';
import { DARK_MAIN,LIGHT_MAIN, WHITE_MAIN} from 'react-native-dotenv';
import {createAppContainer} from 'react-navigation';
import {createMaterialTopTabNavigator} from 'react-navigation-tabs';
import Home from '../Home/Home';
import Rate from '../Rate/Rate';
const AppTabNavigator = createMaterialTopTabNavigator (
{
Home: Home,
Rate: Rate
},
{
initialRouteName: 'Home',
tabBarPosition: 'bottom',
tabBarOptions:{
activeTintColor: WHITE_MAIN,
inactiveTintColor: DARK_MAIN,
indicatorStyle: {
backgroundColor: WHITE_MAIN,
},
style:{
backgroundColor:LIGHT_MAIN,
allowFontScaling : 'true'
},
showIcon: true,
tabStyle: {
height: 60,
},
labelStyle :{
margin : 0,
padding : 0,
fontSize: 15,
},
iconStyle :{
margin : 0,
padding : 0,
}
},
}
);
const AppTabContainer = createAppContainer(AppTabNavigator);
export default AppTabContainer;