与react navigation library进行反应的本机应用程序在发行版或通过使用Xcode的ipa的ios模拟器和设备上崩溃,但在调试模式下运行良好,并且在android上也可以正常运行。
React Native - 0.56.0
React Navigation - 3.12.1
Used NPM
使用的软件包/配置:
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