Skip to content
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

Closed
deific opened this issue Nov 10, 2017 · 6 comments
Closed

[Android]Release crash "o.propTypes.style" in RN 0.49 #16781

deific opened this issue Nov 10, 2017 · 6 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@deific
Copy link

deific commented Nov 10, 2017

#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

at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:56)
at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:40)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:363)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:163)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
at java.lang.Thread.run(Thread.java:760)

`

@react-native-bot
Copy link
Collaborator

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

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!

How to ContributeWhat to Expect from Maintainers

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Nov 10, 2017
@FreddieOD
Copy link

FreddieOD commented Nov 14, 2017

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.

@erhutime
Copy link

+1

@santhosh77h
Copy link

@robisaks
Copy link

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

@facebook facebook locked as resolved and limited conversation to collaborators Nov 10, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants