mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix ReactEditText crash
Summary:
Found this crash when rendering ReactEditText under Venice, from comment it's supposed to be called only in Paper, so I adde a Venice check to avoid calling this method.
{F446844248}
Changelog:
[Android][Changed] - Add a new check to avoid calling this method
Reviewed By: mdvacca
Differential Revision: D26781457
fbshipit-source-id: f4c2e890156a37e35aa153c736b50924254e67bc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a65cd683ae
commit
2b708560fc
@@ -734,8 +734,9 @@ public class ReactEditText extends AppCompatEditText
|
||||
// wrapper 100% of the time.
|
||||
// Since the LocalData object is constructed by getting values from the underlying EditText
|
||||
// view, we don't need to construct one or apply it at all - it provides no use in Fabric.
|
||||
if (!mFabricViewStateManager.hasStateWrapper()) {
|
||||
ReactContext reactContext = getReactContext(this);
|
||||
ReactContext reactContext = getReactContext(this);
|
||||
|
||||
if (!mFabricViewStateManager.hasStateWrapper() && !reactContext.isBridgeless()) {
|
||||
final ReactTextInputLocalData localData = new ReactTextInputLocalData(this);
|
||||
UIManagerModule uiManager = reactContext.getNativeModule(UIManagerModule.class);
|
||||
if (uiManager != null) {
|
||||
|
||||
Reference in New Issue
Block a user