Skip to content

Commit

Permalink
chore: fix hook (#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain committed Nov 29, 2022
1 parent b1b4564 commit e5f510e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AppNavigator.tsx
Expand Up @@ -33,6 +33,7 @@ const Stack = createStackNavigator<AppRoutes>()
export const AppNavigator = () => {
const strings = useStrings()
const isMaintenance = useSelector(isMaintenanceSelector)
const navRef = useDevToolsNavigation()

useHideScreenInAppSwitcher()
useAutoLogout()
Expand All @@ -56,7 +57,7 @@ export const AppNavigator = () => {
}

return (
<NavigationContainer onReady={onReady} ref={useDevToolsNavigation()}>
<NavigationContainer onReady={onReady} ref={navRef}>
<Stack.Navigator
screenOptions={{
headerShown: false /* used only for transition */,
Expand Down

0 comments on commit e5f510e

Please sign in to comment.