Skip to content

Commit 2816e0f

Browse files
committed
Update TabNavigator.tsx
1 parent d2f45dd commit 2816e0f

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

src/components/navigators/TabBarNavigation/TabNavigator.tsx

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
TabBarNavigatorParamList,
1111
} from './TabNavigator.interfaces.ts';
1212
import {Imager} from '../../../screens/imager/Imager';
13+
import {Image, Text, View} from 'react-native';
1314

1415
const Tab = createBottomTabNavigator<TabBarNavigatorParamList>();
1516

@@ -36,7 +37,34 @@ const TabNavigator = () => {
3637
<Tab.Navigator
3738
initialRouteName={TAB_BAR_NAVIGATOR_ROUTES.CARROT}
3839
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: '',
4068
}}>
4169
<Tab.Screen
4270
name={TAB_BAR_NAVIGATOR_ROUTES.CARROT}

0 commit comments

Comments
 (0)