我正在为我的React Native
应用程序挣扎...在我更新我在React-Nativatiate中使用的许多librairies
之前,它曾经在没有错误的情况下正确部署,但是现在我有错误在Android & iOS
上。
它可以与反应的run-android或Android Studio
一起使用,但我的版本APK
不通过Google Play测试。
这是错误的Google Play logcat(部分):
12-12 01:26:15.554:e/reactnativejs(13327):未定义不是对象(评估" e.length") 12-12 01:26:15.556:i/dpps(892):int dppsfeaturead3 :: adcalccalibparams(struct dppsadcfgparam& amp; amp;)():445 calib_a 14,calib_c 0,calib_c 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0,calib_d 0 12-12 01:26:15.558:E/ReactNativeJS(13327):模块AppRegistry不是注册的可呼叫模块(调用runapplication) 12-12 01:26:15.563:E/Networkscheduler(11214):忽略陈旧队列检查消息 12-12 01:26:15.563:e/networkscheduler(11214):---------------------------------------------- 12-12 01:26:15.564:e/androidruntime(13327):致命例外:mqt_native_modules 12-12 01:26:15.564:E/Androidruntime(13327):过程:com.mdef.mymatchup,pid:13327
这是我的软件包。JSON:
{
"name": "my-app",
"version": "1.1.0",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"release": "cd android && ./gradlew assembleRelease",
"installRelease": "cd android && ./gradlew installRelease",
"test": "jest"
},
"dependencies": {
"babel-plugin-module-resolver": "3.0.0",
"babel-plugin-transform-remove-console": "6.8.5",
"d3-interpolate": "1.1.5",
"es6-symbol": "3.1.1",
"lodash": "~4.11.2",
"lodash.range": "3.2.0",
"module-resolver": "1.0.0",
"native-base": "2.3.5",
"native-base-shoutem-theme": "0.1.0",
"prop-types": "15.5.10",
"react": "16.0.0",
"react-native": "0.51.0",
"react-native-communications": "2.2.1",
"react-native-datepicker": "1.6.0",
"react-native-fetch-blob": "0.10.8",
"react-native-firebase-analytics": "4.0.1",
"react-native-image-crop-picker": "0.18.1",
"react-native-sentry": "0.30.2",
"react-native-splash-screen": "3.0.6",
"react-native-svg": "6.0.0",
"react-native-vector-icons": "4.4.2",
"react-navigation": "1.0.0-beta.10",
"react-redux": "5.0.5",
"redux": "3.7.2",
"redux-persist": "5.2.2",
"redux-thunk": " 2.2.0",
"striptags": "file:patch/striptags",
"react-native-fcm-opsone": "file:patch/react-native-fcm"
},
"devDependencies": {
"babel-jest": "19.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "19.0.2",
"react-test-renderer": "~15.4.2"
},
"jest": {
"preset": "react-native"
},
"resolutions": {
"metro-bundler": "0.20.2",
"color-convert": "1.9.1",
"uglify-js": "github:alexlamsl/UglifyJS2#issue-2449"
}
}
我尝试了这个问题的答案,但没有任何帮助。React-Native:模块AppRegistry不是注册的可呼叫模块
有人已经遇到了同样的问题吗?现在已经3天了,我不知道该怎么办...我需要帮助!
解决问题!我已经通过将反应生态从0.51.0降低到0.49.5来解决我的问题,而且我不再崩溃了。