Skip to content

Commit

Permalink
Update App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Loule95450 committed Feb 28, 2024
1 parent 6378b12 commit 0376cf2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useEffect} from 'react';
import {NavigationContainer, useNavigation} from '@react-navigation/native';
import {NavigationContainer} from '@react-navigation/native';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {useCameraPermission} from 'react-native-vision-camera';
Expand All @@ -17,7 +17,6 @@ const QRScanScreen = () => null;
const SearchScreen = () => null;

const App = () => {
const navigation = useNavigation();
const {hasPermission, requestPermission} = useCameraPermission();
const renderIcon =
(name: string) =>
Expand All @@ -39,7 +38,7 @@ const App = () => {
log.error('no user token');
}
});
}, [navigation]);
}, []);

return (
<NavigationContainer>
Expand Down

0 comments on commit 0376cf2

Please sign in to comment.