React Navigation应用程序在发布模式下崩溃或通过ios上的ipa崩溃,但在调试模式下工作正常

时间:2019-09-20 05:28:59

标签: ios react-native react-navigation react-native-ios

react navigation library进行反应的本机应用程序在发行版或通过使用Xcode的ipa的ios模拟器和设备上崩溃,但在调试模式下运行良好,并且在android上也可以正常运行。

React Native  - 0.56.0
React Navigation - 3.12.1
Used NPM

这是代码库的链接:https://www.google.com/url?q=https://github.com/vikassahutech/ReactNavigationProject.git&sa=D&source=hangouts&ust=1568994195895000&usg=AFQjCNHChBAkhb6hqpDXGkFsR2sv9GXNmg

使用的软件包/配置:

Package.json :

{
"name": "SampleProject",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"android": "cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug"
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"react": "^16.9.0",
"react-native": "0.56.0",
"react-native-gesture-handler": "1.0.15",
"react-native-reanimated": "^1.2.0",
"react-navigation": "^3.12.1"
},
"devDependencies": {
"babel-jest": "24.9.0",
"babel-polyfill": "^6.26.0",
"babel-preset-react-native": "5.0.2",
"jest": "24.9.0",
"react-test-renderer": "16.4.1"
},
"jest": {
"preset": "react-native"
}
}

以下是控制台消息:

2019-09-17 18:48:36.339 [error][tid:com.facebook.react.JavaScript] TypeError: undefined is not an object (evaluating 'e.default')

This error is located at:
in r
in t
in RCTView
in RCTView
in n
in n
in t
in t
in RCTView
in e
in n
in n
in r
in r
in t
in n
in n
in RCTView
in e
in a
in RCTView
in RCTView
in t
2019-09-17 18:48:36.344 [error][tid:com.facebook.react.JavaScript] TypeError: TypeError: undefined is not an object (evaluating 'e.default')

This error is located at:
in r
in t
in RCTView
in RCTView
in n
in n
in t
in t
in RCTView
in e
in n
in n
in r
in r
in t
in n
in n
in RCTView
in e
in a
in RCTView
in RCTView
in t

This error is located at:
in n
in RCTView
in e
in a
in RCTView
in RCTView
in t
2019-09-17 18:48:36.346 [error][tid:com.facebook.react.JavaScript] TypeError: TypeError: undefined is not an object (evaluating 'e.default')

This error is located at:
in r
in t
in RCTView
in RCTView
in n
in n
in t
in t
in RCTView
in e
in n
in n
in r
in r
in t
in n
in n
in RCTView
in e
in a
in RCTView
in RCTView
in t

This error is located at:
in n
in RCTView
in e
in a
in RCTView
in RCTView
in t
2019-09-17 18:48:36.363 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: TypeError: TypeError: undefined is not an object (evaluating 'e.default')

This error is located at:
in r
in t
in RCTView
in RCTView
in n
in n
in t
in t
in RCTView
in e
in n
in n
in r
in r
in t
in n
in n
in RCTView
in e
in a
in RCTView
in RCTView
in t

This error is located at:
in n
in RCTView
in e
in a
in RCTView
in RCTView
in t
libc++abi.dylib: terminating with uncaught exception of type NSException

0 个答案:

没有答案