-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native 热更新探索 #15
Comments
安卓打包找不到 ChoreographerCompat microsoft/react-native-code-push#792 版本问题
|
可以在 build 的时候去掉测试 |
iOS CodePush 集成按照官网指导,SDK 直接用 rnpm 集成,提前注册好 CodePush 和 APP,记下 key 参考 CodePush Demo,用 CodePush 包裹 RN 组件 用相关命令导出 bundle,CodePush 发布相关 bundle Xcode。command + shift + , 选择 release 即可使打 release 包,测试 CodePush 效果。(打包如果测试出现问题,直接在 build 里忽略掉测试) |
Android CodePush 集成目前存在问题
看官方 Demo,发现 rnpm 修改貌似不完善,修改 @Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new CodePush(getString(R.string.reactNativeCodePush_androidDeploymentKey), getApplicationContext(), BuildConfig.DEBUG),
new BaiduMapPackage(getApplicationContext())
);
} 然后出现:
参考下面:
用
可以运行了 额外小记开启 AVD 虚拟机时候出现:
是 Docker 在跑的问题,关掉就行 |
总结文章 |
The text was updated successfully, but these errors were encountered: