When navigating back, after navigation animation is finished previous screen is shown for a moment. After it disappears. Sometimes it works fine.
See footage below
https://user-images.githubusercontent.com/5978212/116809884-92e34280-ab51-11eb-94d1-ee7314125ead.mov
https://user-images.githubusercontent.com/5978212/116809890-9971ba00-ab51-11eb-9ec5-a3dd267f5d94.mov
Previous screen shouldn't be shown after navigating back
Previous screen is shown for very short moment after navigating back
Same issue here but not as obvious. For me it happens from the drawer.
Could you provide a minimal reproducible example of your issue?
Could you provide a minimal reproducible example of your issue?
I will try later today
It seems it's harder to reproduce on blank project.
At the end of the video previous page flickers for a moment
https://user-images.githubusercontent.com/5978212/117048331-e907df80-ad23-11eb-8f2e-02a32251d85f.mp4
Here's the repo
https://github.com/alexandrius/screens-flicker
Just in case it's helpful. We don't use Expo and have the exact same issue:
Disabling react-native-screens stops the flicker.
@obernal disabling = remove from package.json?
@obernal disabling = remove from package.json?
enableScreens(false) seems to be enough.
I don't know how disabling react-native-screens fixes the issue.
I don't know how disabling react-native-screens fixes the issue.
My comment is not meant to be interpreted as a fix but as additional information that the flicker only happens when it's enabled, confirming this is Very likely a react-native-screens issue. Or do you mean you see the flicker even after disabling it?
@obernal Thanks for the clarifications. Well yes, the flicker disappears when I disable react-native-screens. Does the latest release of screens fixes the issue? I haven't tried it since my project is using expo.
@obernal Thanks for the clarifications. Well yes, the flicker disappears when I disable react-native-screens. Does the latest release of screens fixes the issue? I haven't tried it since my project is using expo.
enableScreens(false) fixes the flicker for me as well
@alexandrius I made a snack from your repo, just in case that helps the debugging process. https://snack.expo.io/@ryantg/github.com-alexandrius-screens-flicker
Most helpful comment
Just in case it's helpful. We don't use Expo and have the exact same issue:
Disabling
react-native-screensstops the flicker.