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

[splash-screen][iOS] Remove flicker in-between Splash & ReactApp #8739

Merged

Conversation

bbarthec
Copy link
Contributor

@bbarthec bbarthec commented Jun 9, 2020

Why

Flicker was reported on iOS in-between SplashScreen and ReactApp phases: https://expo-developers.slack.com/archives/C04Q3JTSV/p1591378610268800

How

Native SplashScreen View was added in async manner and that was causing some small gap while actual iOS Launch Screen was already hidden and custom view from expo-splash-screen was not yet added properly.

I've changed that to sync manner and also added handling RCTRootView.loadingView as described in https://reactnative.dev/docs/running-on-device#pro-tips.

Moreover added proper resizing of the UIView coming from .xib file.

Test Plan

Installed in bare-expo and step by step debugged view hierarchy breakpointing between SplashScreen-related functions.

Changelog

  • Fixed flicker in-between SplashScreen and ReactApp phases on iOS

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2020

Native Component List for this branch is ready

Copy link
Contributor

@sjchmiela sjchmiela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks safe enough! 👍

@bbarthec bbarthec force-pushed the @bbarthec/splash-screen-ios-handle-rctrootview-loadingview branch from b9b5ad8 to a807319 Compare July 14, 2020 15:24
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@bbarthec bbarthec changed the title [splash-screen][iOS] Remove flicker in-between SplashScreen and ReactApp phases [splash-screen][iOS] Remove flicker in-between Splash & ReactApp Jul 14, 2020
@bbarthec bbarthec merged commit 4774949 into master Jul 14, 2020
@bbarthec bbarthec deleted the @bbarthec/splash-screen-ios-handle-rctrootview-loadingview branch July 14, 2020 16:02
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

Successfully merging this pull request may close these issues.

None yet

3 participants