I'm working on react native 0.59.2 on ios, everything's fine when running the debug mode, but when i pack the release package and run it on iphone, it's crashed just after open the app, and only clue i got blow which is printed in xcode console
* Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: undefined is not an object (evaluating 'k.Image.propTypes.style')', reason: 'Unhandled JS Exception: undefined is not an object (evaluating 'k.Image.propTypes.style'), stack:@1235:4438h@2:1670@1228:100h@2:1670@366:189h@2:1670@11:54h@2:1670d@2:868global code@3004:4'* First throw call stack:(0x19d6e4164 0x19d3f8c1c 0x102753924 0x1027500bc 0x19d6ead14 0x19d5b3de8 0x19d5b4a10 0x102766244 0x1027a3468 0x1027a31c8 0x19d382ec4 0x19d38433c 0x19d38a85c 0x19d38b290 0x19d394928 0x19d3eb714 0x19d3f19c8)libc++abi.dylib: terminating with uncaught exception of type NSException
I searched whole project with key word Image.propTypes.style and Image.propTypes but nothing is showed,
here is my package.json
{"name": "cancle","version": "0.0.1","private": true,"scripts": {"start": "node node_modules/react-native/local-cli/cli.js start -- --reset-cache","mock": "node --harmony ./mock/server.js","test": "jest","link": "react-native link",
},"dependencies": {"@react-native-community/async-storage": "^1.11.0","@remobile/react-native-qrcode-local-image": "^1.0.4","code-push-cli": "^2.1.9","color": "^3.0.0","immutable": "^3.8.2","jcore-react-native": "^1.8.0","jpush-react-native": "^2.2.5","native-base": "^2.4.5","node-forge": "^0.7.5","prop-types": "^15.7.2","react": "16.8.3","react-immutable-render-mixin": "^0.9.7","react-native": "0.59.2","react-native-camera": "^1.1.4","react-native-code-push": "^5.3.2","react-native-contacts": "^5.0.4","react-native-deprecated-custom-components": "^0.1.2","react-native-device-info": "^0.21.5","react-native-extended-stylesheet": "^0.8.1","react-native-fast-image-dafy": "^5.0.12","react-native-fs": "^2.10.14","react-native-htmlview": "^0.13.0","react-native-image-picker": "^0.26.7","react-native-image-progress": "^1.1.1","react-native-input-scroll-view": "^1.6.7","react-native-permissions": "^1.1.1","react-native-qrcode-scanner": "^1.0.1","react-native-qrcode-svg": "^5.0.7","react-native-render-html": "^4.2.0","react-native-router-flux": "^4.0.0-beta.31","react-native-scrollable-tab-view": "^1.0.0","react-native-sf-drawer": "^1.0.2","react-native-shadow": "^1.2.2","react-native-shadow-cards": "^1.0.2","react-native-snap-carousel": "^3.7.2","react-native-storage": "^0.2.2","react-native-svg": "^6.5.3","react-native-swiper": "^1.5.13","react-native-view-shot": "^2.4.0","react-native-webview": "^5.12.1","react-redux": "^5.0.7","recyclerlistview": "^1.3.4","redux": "^4.0.0","redux-logger": "^3.0.6","redux-persist": "^5.9.1","redux-saga": "^0.16.0","rn-fetch-blob": "^0.10.13","teaset": "^0.6.0" },"devDependencies": {"@babel/core": "^7.10.2","@babel/plugin-proposal-decorators": "^7.10.1","@babel/runtime": "^7.10.2","babel-jest": "^26.0.1","babel-preset-react-app": "^9.1.2","fs.promised": "^3.0.0","jest": "^26.0.1","koa": "^2.5.1","koa-body": "^2.5.0","koa-compose": "^4.0.0","koa-route": "^3.2.0","koa-router": "^7.4.0","koa-static": "^4.0.2","metro-react-native-babel-preset": "^0.59.0","react-test-renderer": "16.8.3","redux-devtools-extension": "^2.13.5","remote-redux-devtools": "^0.5.12","remote-redux-devtools-on-debugger": "^0.8.3" },"jest": {"preset": "react-native" },"main": "index.js","license": "MIT"}
please anyone gives some advices thanks a lot!!