router
router copied to clipboard
flickering on page when switching between tabs
Which package manager are you using? (Yarn is recommended)
yarn
Summary
when switching tabs for the first time the whole nested tab screen seems to flicker white
Minimal reproducible example
in root layout,
<Stack screenOptions={{headerShown: false}}/>
in root index,
<Redirect href='/screen1' />
in (tabs) directory layout,
<Tabs>
<Tabs.Screen name='screen1' options={{headerShown: false}}/>
<Tabs.Screen name='screen2' options={{headerShown: false}}/>
</Tabs>
same issue, for now i set lazy prop to false
also having this issue, setting lazy prop to false helped until i needed to render images from urls on the screen
same here.. any news on this?
Same issue here
Hope this will get more traction. I'm experiencing the same
Same issue here
Same issue here. Is it ok to set lazy prop to false or it might cause other problems?
Same issue here
Same issue here. Can anybody hear us?
UPDATE: I solved this by not using Expo Router, there is no issue with react navigation.
Same issue here. Is it ok to set lazy prop to false or it might cause other problems?
Setting lazy: false does indeed have side effects. every screen of the tab navigator will get mounted & rendered, causing e.g. tanstack-query to refetch all queries.
same here, only in android
Having same issue
I'm having the same issue. Has anyone found a solution?
I'm having the same issue. Has anyone found a solution?
Since I had this problem I don't use expo router anymore. I don't have any problem with react navigation.
I'm having the same issue. Has anyone found a solution?
Since I had this problem I don't use expo router anymore. I don't have any problem with react navigation.
Damn. The app is already quite entangled with expo router, so I'm not sure if it's a feasible solution to refactor to react navigation.
How challenging was it to switch your app to use react navigation instead?
I'm having the same issue. Has anyone found a solution?
Since I had this problem I don't use expo router anymore. I don't have any problem with react navigation.
Damn. The app is already quite entangled with expo router, so I'm not sure if it's a feasible solution to refactor to react navigation.
How challenging was it to switch your app to use react navigation instead?
When I encountered this issue, I was working on the Android version. I changed the workflow on two of my tab screens, but it was still frustrating to experience the issue on the remaining two tabs. When developing the iOS version, I used React Navigation from the start.