Skip to content

Commit

Permalink
Update TabNavigator.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Loule95450 committed Feb 28, 2024
1 parent bad864e commit d620fa3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/navigators/TabBarNavigation/TabNavigator.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React, {useEffect} from 'react';
import {ColorValue} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {getFocusedRouteNameFromRoute} from '@react-navigation/native';
import {useNavigation} from '@react-navigation/native';
import {
getFocusedRouteNameFromRoute,
useNavigation,
} from '@react-navigation/native';

import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import AccountNavigator from '../AccountNavigator';
Expand All @@ -13,11 +15,11 @@ import {
TAB_BAR_NAVIGATOR_ROUTES,
TabBarNavigatorParamList,
} from './TabNavigator.interfaces.ts';
import {Imager} from '../../../screens/imager/Imager';

const Tab = createBottomTabNavigator<TabBarNavigatorParamList>();

const PlateScreen = () => null;
const QRScanScreen = () => null;
const SearchScreen = () => null;

const TabNavigator = () => {
Expand Down Expand Up @@ -62,7 +64,7 @@ const TabNavigator = () => {
/>
<Tab.Screen
name={TAB_BAR_NAVIGATOR_ROUTES.QRSCAN}
component={QRScanScreen}
component={Imager}
options={{
tabBarIcon: renderIcon('qrcode-scan'),
}}
Expand Down

0 comments on commit d620fa3

Please sign in to comment.