Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show the Launch Screen until React has finished loading
The Launch Screen is only shown until the app has loaded, not until React has loaded. This results in a white flash between the Launch Screen and the initial view of the app. This commit fixes that by showing the Launch Screen until React also has finished loading. The solution was found here: facebook/react-native#1402 (comment)
- Loading branch information
fe71cc6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if you're not using a .xib but rather images (asset catalogue) then the following code can be used:
fe71cc6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using a
.xib
, but thanks for the tip anyway :)