When I upgrade RN from 0.32 to 0.44, react to 16.0.0-alpha.6. When I operate the app on Xcode .I get the errors:
Asked
Active
Viewed 3,607 times
11
-
1same issue, did you find solution? – Manspof Oct 22 '17 at 05:25
-
[see this issue](https://github.com/facebook/react-native/issues/16376) – liu pluto Feb 27 '18 at 01:38
-
Take a look at [StackOverFlow#45988103](https://stackoverflow.com/questions/45988103/rctbridge-required-dispatch-sync-to-load-rctdevloadingview-this-may-lead-to-dea), it worked for me. – user7272715 Sep 25 '18 at 14:14
1 Answers
2
Open Your /ios/YourAppName/AppDelegate.m
#import "AppDelegate.h"
// ADD THIS
#if RCT_DEV
#import <React/RCTDevLoadingView.h>
#endif
// TILL HERE
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:jsCodeLocation
moduleProvider:nil
launchOptions:launchOptions];
// THIS CONDITION
#if RCT_DEV
[bridge moduleForClass:[RCTDevLoadingView class]];
#endif
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"Test"
initialProperties:nil];
// TILL HERE
...
}
Worked for me! Source here

Hussain Pettiwala
- 1,406
- 8
- 16