-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android]Release crash "o.propTypes.style" in RN 0.49 #16781
Comments
@facebook-github-bot no-template |
Hey @deific, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks! |
Im having the same issue. Did you find a solution? I am looking at the ListView.propTypes.style and the such. These have been moved. |
+1 |
+1 need some help https://github.com/facebook/react-native/issues/16985 |
I had the same problem, it ended up being an outdated module I was including. https://github.com/d-a-n/react-native-modal-picker I switched to an updated fork, and it worked https://github.com/peacechen/react-native-modal-selector |
#5655 this issues has same problem in Rn 0.19.0,and find a solution.
but it is very strange,my app crashes on release build in RN 0.49, debug works fine.
I check proguard-rules.pro file lin 45-46:
`
-keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
-keep class * extends com.facebook.react.bridge.NativeModule { *; }
-keepclassmembers,includedescriptorclasses class * { native ; }
-keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
-keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
`
android:7.1
rn:0.49
package.json:
{ "name": "AirporRn", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "antd-mobile": "^2.0.0", "jwt-decode": "^2.2.0", "moment": "^2.19.1", "object-assign": "^4.1.1", "prop-types": "^15.6.0", "rc-form": "^1.4.8", "react": "16.0.0-beta.5", "react-dom": "^16.0.0", "react-native": "0.49.3", "react-native-scrollable-tab-view": "^0.8.0", "react-native-storage": "^0.2.2", "react-navigation": "^1.0.0-beta.15" }, "devDependencies": { "babel-jest": "21.2.0", "babel-plugin-import": "^1.6.2", "babel-preset-react-native": "4.0.0", "jest": "21.2.1", "react-test-renderer": "16.0.0-beta.5" }, "jest": { "preset": "react-native" } }
error log:
`
com.facebook.react.common.JavascriptException: undefined is not an object (evaluating 'o.View.propTypes.style'), stack:
@493:850
i@2:565
n@2:348
t@2:210
@491:299
i@2:565
n@2:348
t@2:210
@490:135
i@2:565
n@2:348
t@2:210
@488:282
i@2:565
n@2:348
t@2:210
@12:315
i@2:565
n@2:278
t@2:210
global code@668:9
`
The text was updated successfully, but these errors were encountered: