-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix checkbox casting crash in old android versions (#23281)
Summary: fixes casting on older android versions reported in #22885 [Android] [Fixed] - fix casting crash in android checkbox Pull Request resolved: #23281 Differential Revision: D13941776 Pulled By: cpojer fbshipit-source-id: ff3695f64d3399790a03b02d5b1363cacc655336
- Loading branch information
1 parent
9ccde37
commit 58437cd
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58437cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made these changes but looks like my application uses another .jar file.
My React-Native version is 0.58.6
java.lang.ClassCastException: android.support.v7.widget.TintContextWrapper cannot be cast to com.facebook.react.bridge.ReactContext at com.facebook.react.views.checkbox.ReactCheckBoxManager$1.onCheckedChanged(ReactCheckBoxManager.java:27) at android.widget.CompoundButton.setChecked(CompoundButton.java:126) at com.facebook.react.views.checkbox.ReactCheckBox.setChecked(ReactCheckBox.java:26) at android.widget.CompoundButton.toggle(CompoundButton.java:87) at android.widget.CompoundButton.performClick(CompoundButton.java:99) at android.view.View$PerformClick.run(View.java:17721) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5103) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method)
ReactCheckBoxManager.java:27 references to below address:
node_modules\react-native\android\com\facebook\react\react-native\0.58.6\react-native-0.58.6-sources.jar
Can anybody please help me on that?