经过一番研究,我发现RCTBundleURLProvider
上不再存在jsBundleURLForBundleRoot:fallbackResource:
。
修复方法如下:
替换为
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
与
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
重新构建应用程序,然后您就可以开始使用了。