Skip to content

Commit 42632b9

Browse files
committed
If we have a content size watcher then scroll TextInput differently
1 parent 9c84832 commit 42632b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ public ReactEditText(Context context) {
9999
// TODO: t6408636 verify if we should schedule a layout after a View does a requestLayout()
100100
@Override
101101
public boolean isLayoutRequested() {
102-
return false;
102+
if (mContentSizeWatcher != null) {
103+
return true;
104+
} else {
105+
return false;
106+
}
103107
}
104108

105109
@Override

0 commit comments

Comments
 (0)