Skip to content

Commit 2b70856

Browse files
luluwu2032facebook-github-bot
authored andcommitted
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
1 parent a65cd68 commit 2b70856

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,9 @@ private void setIntrinsicContentSize() {
734734
// wrapper 100% of the time.
735735
// Since the LocalData object is constructed by getting values from the underlying EditText
736736
// view, we don't need to construct one or apply it at all - it provides no use in Fabric.
737-
if (!mFabricViewStateManager.hasStateWrapper()) {
738-
ReactContext reactContext = getReactContext(this);
737+
ReactContext reactContext = getReactContext(this);
738+
739+
if (!mFabricViewStateManager.hasStateWrapper() && !reactContext.isBridgeless()) {
739740
final ReactTextInputLocalData localData = new ReactTextInputLocalData(this);
740741
UIManagerModule uiManager = reactContext.getNativeModule(UIManagerModule.class);
741742
if (uiManager != null) {

0 commit comments

Comments
 (0)