File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
src/components/navigators/TabBarNavigation Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
TabBarNavigatorParamList ,
11
11
} from './TabNavigator.interfaces.ts' ;
12
12
import { Imager } from '../../../screens/imager/Imager' ;
13
+ import { Image , Text , View } from 'react-native' ;
13
14
14
15
const Tab = createBottomTabNavigator < TabBarNavigatorParamList > ( ) ;
15
16
@@ -36,7 +37,34 @@ const TabNavigator = () => {
36
37
< Tab . Navigator
37
38
initialRouteName = { TAB_BAR_NAVIGATOR_ROUTES . CARROT }
38
39
screenOptions = { {
39
- headerShown : false ,
40
+ headerShown : true ,
41
+ // Set logo in left side of header
42
+ headerLeft : ( ) => (
43
+ < View style = { { flexDirection : 'row' , alignItems : 'center' } } >
44
+ < Image
45
+ source = { require ( '../../../../assets/kayu.png' ) }
46
+ style = { { width : 40 , height : 40 } }
47
+ />
48
+ < Text
49
+ style = { {
50
+ fontSize : 20 ,
51
+ fontWeight : 'bold' ,
52
+ color : 'black' ,
53
+ } } >
54
+ Kayu
55
+ </ Text >
56
+ </ View >
57
+ ) ,
58
+ headerRight : ( ) => (
59
+ < Icon
60
+ name = "camera"
61
+ size = { 25 }
62
+ color = "black"
63
+ style = { { marginRight : 10 } }
64
+ onPress = { ( ) => navigate ( TAB_BAR_NAVIGATOR_ROUTES . QRSCAN ) }
65
+ />
66
+ ) ,
67
+ headerTitle : '' ,
40
68
} } >
41
69
< Tab . Screen
42
70
name = { TAB_BAR_NAVIGATOR_ROUTES . CARROT }
You can’t perform that action at this time.
0 commit comments