Skip to content

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

Description

@deific

#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)

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions