-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Odd animation with stack 2.x when mounting / initial route #7028
Comments
Please provide a video and a repro. And mention your React Native version, Stack version and React Navigation version. |
Versions used:
Will make a video shortly and a repro afterwards. |
Here are the videos. I have used a slow device for demonstration purposes. This one is with the 1.x version: After the upgrade, this is what happens. Why so slow? Can we show a placeholder at least? It's really bad, and the same happens when booting up the app right away with the navigator (instead of the login screen) |
I think the delay is related to https://github.com/th3rdwave/react-native-safe-area-context taking time to report safe area insets. I'll try to add some initial value to avoid this delay. cc @janicduplessis it'll be really great if we could expose default values in a constant |
Can we bypass it if we manually set insets to 0? My custom header/body from native-base already handle all insets so this is extremely redundant for my use-case. |
By the way, why use a custom safe-area library instead of the very own RN's SafeAreaView? |
RN's
I think we also need to pass |
Should be fixed in latest version |
Awesome! Thanks for the quick fix. |
I'm using a single component (without any navigator) for one screen (login) and another one for the whole app. Basically,
{session ? <Navigator/> : <CustomComponent/>}
.The above worked fine with 1.x, the custom component would unmount and the navigator would mount seamlessly. Now, with 2.x, there's a visible delay for the navigator to mount and a the app's background can be seen for half a second. This looks quite awkward to the user. What changed? I really don't want to put this other screen in the navigator.
Note: Both android and iOS.
Update: The issue is worse than I thought. The component's initial render is so slow that even rendering it right away on app start shows the app's background/black/white screen, pretty much overwriting any splash screen that might be there before.
The text was updated successfully, but these errors were encountered: