我正处于react-native的学习阶段。当我在模拟器上运行我的应用程序时,我得到了以下警告,但是如何调试这个错误?我不知道该检查什么以及在哪里才能摆脱这个错误,有人能指导我一下吗?我在iOS模拟器上运行。

发布于 2020-07-12 05:37:17
我能够通过更新AppDelegate.m来解决该警告
#if RCT_DEV
#import <React/RCTDevLoadingView.h>
#endif
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:jsCodeLocation
moduleProvider:nil
launchOptions:launchOptions];
#if RCT_DEV
[bridge moduleForClass:[RCTDevLoadingView class]];
#endif
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"Test"
initialProperties:nil];
}https://stackoverflow.com/questions/62790300
复制相似问题