We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42632b9 commit 111cc08Copy full SHA for 111cc08
ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java
@@ -99,6 +99,11 @@ public ReactEditText(Context context) {
99
// TODO: t6408636 verify if we should schedule a layout after a View does a requestLayout()
100
@Override
101
public boolean isLayoutRequested() {
102
+ // If we are watching and updating container height based on content size
103
+ // then we don't want to scroll right away. This isn't perfect -- you might
104
+ // want to limit the height the text input can grow to. Possible solution
105
+ // is to add another prop that determines whether we should scroll to end
106
+ // of text.
107
if (mContentSizeWatcher != null) {
108
return true;
109
} else {
0 commit comments