[react-native] 导入原有的iOS项目报 Application XXX has not been registered错误
来源:互联网 发布:php cookie 跨域 编辑:程序博客网 时间:2024/05/20 11:33
NSURL *jsCodeLocation= [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
采用上面的URL方式,报 Application XXX has not been registered错误
可能有两个原因
一、
AppRegistry.registerComponent('项目名',()=>xxx)跟
RCTRootView *rootView = [[RCTRootViewalloc]initWithBundleURL:jsCodeLocation
moduleName:项目名
initialProperties:nil
launchOptions:launchOptions];
的项目名不一致;
二、还有可能是main.jsbundle 文件的缺失,或是不对。需要重新生成该文件。
生成方法:进入到项目根目录(含node_modules文件),先要npm start ,然后再执行
curl http://localhost:8081/index.ios.bundle -o main.jsbundle命令
0 0
- [react-native] 导入原有的iOS项目报 Application XXX has not been registered错误
- React Native报错:Application XXX has not been registered.
- React Native Application 项目名 has not been registered.
- 【React Native】Invariant Violation: Application AwesomeProject has not been registered
- React-Native项目运行时报错:Application xxxProject has not been registered.
- React-Native坑1:Invariant Violation:Application 项目名 has not been registered.
- react react 报错:has not been registered
- Invariant Violation:Application 项目名 has not been registered.
- Invariant Violation:Application 项目名 has not been registered.
- react native集成到原有的项目中(iOS)
- axd script engine has not been registered
- RCP 工程启动报No application id has been found 的错误
- 【React Native】React Native之Navigator has been remove from this package...的问题
- 解决:react native使用TabNavigator报错 PropTypes has been moved to a separate package...
- React-native导入三方库的报错
- React-native嵌入到原有Android项目
- android原有项目中集成react-native
- ReactNative 学习(坑-Applocation xxxx has not been registered)
- Oracle(4)创建用户,分配权限及角色,Schema概念
- nginx配置http2,chrome还是显示h1.1解决办法
- Linux系统安装及网络配置
- Oracle 11g DRCP连接方式——基本原理
- 批量删除
- [react-native] 导入原有的iOS项目报 Application XXX has not been registered错误
- Android 内存优化实践与总结
- document.execCommand()方法处理Html数据
- kubernetes架构图
- 发送邮件常见的错误和解决方法
- java并发编程
- Android 实现zlib解压
- spring3 mvc 与struts2 的区别
- 微软2017预科生笔试题第一题