mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Properly clean and reset navigators
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { createNativeStackNavigator } from '@react-navigation/native-stack'
|
||||
import { TabLocalStackParamList } from '@utils/navigation/navigators'
|
||||
import usePopToTop from '@utils/navigation/usePopToTop'
|
||||
import React from 'react'
|
||||
import TabShared from '../Shared'
|
||||
import Root from './Root'
|
||||
@ -7,6 +8,7 @@ import Root from './Root'
|
||||
const Stack = createNativeStackNavigator<TabLocalStackParamList>()
|
||||
|
||||
const TabLocal: React.FC = () => {
|
||||
usePopToTop()
|
||||
return (
|
||||
<Stack.Navigator screenOptions={{ headerShadowVisible: false }}>
|
||||
<Stack.Screen name='Tab-Local-Root' component={Root} />
|
||||
|
Reference in New Issue
Block a user