当我在iOS中运行我的应用程序时,它在两种情况下都可以顺利地运行调试器,但在Android中,它仅以DEBUG模式运行并抛出错误
在调试器关闭时,对象无效,不能作为React子对象(找到:带键的对象{})。
好吧,我相信渲染对象是否确实存在问题,它将在iOS中显示相同的错误,但在iOS中运行正常?
package.json
{
"name": "Akash35",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"@babel/runtime": "^7.3.4",
"firebase": "^5.8.4",
"react": "16.6.3",
"react-native": "^0.58.5",
"react-native-vector-icons": "^6.2.0",
"react-navigation": "^2.18.3",
"react-navigation-material-bottom-tabs": "^0.1.2",
"react-redux": "^6.0.1",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"babel-core": "7.0.0-bridge.0",
"babel-jest": "24.0.0",
"jest": "24.0.0",
"metro-react-native-babel-preset": "0.51.1",
"react-test-renderer": "16.6.3"
},
"jest": {
"preset": "react-native"
}
}