react-native-preloader
react-native-preloader copied to clipboard
Manified React error:#20
I get the error:
Manified React error:#20;for the full message or use the non-minified dev environment for full errors and additional hepful warning.
Seems it's something wrong with your react code
the white screen still has long time
please check your adb log with TAG MrReactActivity
to see if it's using cached view
aslo,it give me the error: The specified child already has a parent. You must call removeView() on the child's parent first.
@Override
protected void onDestroy() {
super.onDestroy();
if (mReactRootView != null) {
mReactRootView.unmountReactApplication();
mReactRootView = null;
ReactPreLoader.onDestroy(getReactInfo());
}
// getReactNativeHost().clear(); }
the view should be removed when activity destroyed, please check if your activity get destroyed
Are you Chinese? 我是退出去后马上又进去报这个错误
请贴下你的ReactActivity代码,看看你的onDestroy是否正确执行了,看上去是没有执行基类的onDestroy
onDestroy调用问题,就是你退出页面,ondestory不会立即执行,再次进入又开始执行onCreate了,觉得你那个removeView在按back按钮之前调用
@xiaozhicheng
dependencies { compile "com.github.markzhai:react-native-preloader:0.32.0" }
试试看这个