router icon indicating copy to clipboard operation
router copied to clipboard

flickering on page when switching between tabs

Open stuontheblockchain opened this issue 2 years ago • 16 comments

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>

stuontheblockchain avatar Jun 25 '23 21:06 stuontheblockchain

same issue, for now i set lazy prop to false

devoren avatar Jul 02 '23 09:07 devoren

also having this issue, setting lazy prop to false helped until i needed to render images from urls on the screen

davidhanlon23 avatar Jul 11 '23 02:07 davidhanlon23

same here.. any news on this?

stevan-borus avatar Aug 03 '23 14:08 stevan-borus

Same issue here

Dundyne avatar Oct 05 '23 11:10 Dundyne

Hope this will get more traction. I'm experiencing the same

markanthonyuy avatar Nov 05 '23 00:11 markanthonyuy

Same issue here

joghyrt avatar Nov 12 '23 00:11 joghyrt

Same issue here. Is it ok to set lazy prop to false or it might cause other problems?

RiczCalixto avatar Dec 18 '23 22:12 RiczCalixto

Same issue here

J-Boelen avatar Dec 29 '23 11:12 J-Boelen

Same issue here. Can anybody hear us?

UPDATE: I solved this by not using Expo Router, there is no issue with react navigation.

tunadag avatar Dec 30 '23 10:12 tunadag

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.

mleister97 avatar Jan 08 '24 17:01 mleister97

same here, only in android

mannoeu avatar Dec 28 '24 19:12 mannoeu

Having same issue

thomasviaud avatar Feb 22 '25 22:02 thomasviaud

I'm having the same issue. Has anyone found a solution?

fredrikmikkelsen avatar Mar 06 '25 09:03 fredrikmikkelsen

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.

tunadag avatar Mar 06 '25 09:03 tunadag

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?

fredrikmikkelsen avatar Mar 06 '25 09:03 fredrikmikkelsen

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.

tunadag avatar Mar 06 '25 10:03 tunadag