perf: enable lazy loading for tab navigation (#711)
parent
7d47b342d6
commit
fa9351534b
|
@ -225,7 +225,7 @@ function TabsNavigator() {
|
|||
<Tab.Navigator
|
||||
initialRouteName="HomeTab"
|
||||
backBehavior="initialRoute"
|
||||
screenOptions={{headerShown: false}}
|
||||
screenOptions={{headerShown: false, lazy: true}}
|
||||
tabBar={tabBar}>
|
||||
<Tab.Screen name="HomeTab" component={HomeTabNavigator} />
|
||||
<Tab.Screen name="SearchTab" component={SearchTabNavigator} />
|
||||
|
|
Loading…
Reference in New Issue