Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flickering on page when switching between tabs #688

Open
stuontheblockchain opened this issue Jun 25, 2023 · 10 comments
Open

flickering on page when switching between tabs #688

stuontheblockchain opened this issue Jun 25, 2023 · 10 comments

Comments

@stuontheblockchain
Copy link

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>
@devoren
Copy link

devoren commented Jul 2, 2023

same issue, for now i set lazy prop to false

@davidhanlon23
Copy link

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

@stevan-borus
Copy link

same here.. any news on this?

@Dundyne
Copy link

Dundyne commented Oct 5, 2023

Same issue here

@markanthonyuy
Copy link

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

@joghyrt
Copy link

joghyrt commented Nov 12, 2023

Same issue here

@RiczCalixto
Copy link

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

@J-Boelen
Copy link

Same issue here

@tunadag
Copy link

tunadag commented Dec 30, 2023

Same issue here. Can anybody hear us?

@mleister97
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests