Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash on ReactEditText with AppCompat 1.4.0
Summary: This Diff fixes a crash happening as the user uses AppCompat 1.4.0 as a dependency in their App and uses a `TextInput` component. The crash happens as `mFabricViewStateManager` is accessed during the ctor of the superclass, and is not yet initialized. Fixes #31572 Changelog: [Android] [Fixed] - Fix crash on ReactEditText with AppCompat 1.4.0 Reviewed By: ShikaSD Differential Revision: D32674975 fbshipit-source-id: efa413f5e33527a29fbcfa729e8b006ecb235978
- Loading branch information
e21f8ec
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.
@cortinico
This seems to fix the following error:
Attempt to invoke virtual method'boolean com.facebook.react.uimanager.FabricViewStateManager.hasStateWrappper()' on a null object reference
However, TextInput may need some further work to support appcompat >= 1.4.0. This issue continues to occur:
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.facebook.react.views.textinput.ReactEditText$InternalKeyListener.setInputType(int)' on a null object reference
at com.facebook.react.views.textinput.ReactEditText.setInputType(ReactEditText.java:454)
at androidx.appcompat.widget.AppCompatEmojiEditTextHelper.initKeyListener(AppCompatEmojiEditTextHelper.java:92)
#31572
e21f8ec
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.
@aretesoftware Have you tried the 0.68 RC? Or how can I reproduce this?
e21f8ec
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.
How can I make the above changes to my current project.
My current React Native Project version is 0.67.2 ([email protected])
e21f8ec
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.
You can try React Native
0.68.0-rc1
or wait for the stable release which will be out in some weekse21f8ec
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.
This Worked !..Thank U..
e21f8ec
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.
how to edit and rebuild file .jar lib react native ?. help me