React Native 0.68 Onboarding Flash White Screen
See original GitHub issueDescription
// Place this code after “[self.window makeKeyAndVisible]” and before “return YES;” UIStoryboard *sb = [UIStoryboard storyboardWithName:@“LaunchScreen” bundle:nil]; UIViewController *vc = [sb instantiateInitialViewController]; rootView.loadingView = vc.view;
this code is not working
Version
0.68.0
Output of npx react-native info
System: OS: macOS 12.3 CPU: (10) arm64 Apple M1 Max Memory: 795.16 MB / 32.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 17.8.0 - /opt/homebrew/bin/node Yarn: 1.22.17 - /opt/homebrew/bin/yarn npm: 8.5.5 - /opt/homebrew/bin/npm Watchman: 2022.03.14.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: Not Found SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.3/13E113 - /usr/bin/xcodebuild Languages: Java: 11.0.14.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.0 => 0.68.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
the code is not working
// Place this code after “[self.window makeKeyAndVisible]” and before “return YES;” UIStoryboard *sb = [UIStoryboard storyboardWithName:@“LaunchScreen” bundle:nil]; UIViewController *vc = [sb instantiateInitialViewController]; rootView.loadingView = vc.view;
Snack, code example, screenshot, or link to a repository
No response
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@lobydev change type of rootView to RCTRootView instead of UIView. You will need to type case RCTAppSetupDefaultRootView as well.
So changing line number 44 to
RCTRootView *rootView = (RCTRootView *)RCTAppSetupDefaultRootView(bridge, @"Furya", nil);
should solve the problem
Can I ask you to create a newer issue + provide a reproducer for this specific scenario? We’re having a hard time tracking closed issues which receives follow-up comments so they get downprioritized. Please use the “New Architecture” issue as this looks like Fabric related.