Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,16 @@ public WritableMap getStateUpdate() {
}

@Override
public void afterTextChanged(Editable s) {}
public void afterTextChanged(Editable s) {
if (!mEditText.hasFocus()) {
mEditText.post(new Runnable() {
@Override
public void run() {
mEditText.scrollTo(0, 0);
}
});
}
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -923,4 +923,15 @@ module.exports = ([
);
},
},
{
title: 'Overflowed text behavior on render',
render: function (): React.Node {
return (
<TextInput
style={styles.default}
defaultValue="The quick brown fox expertly jumps over the lazy dog, lying still on the grass."
/>
);
},
},
]: Array<RNTesterModuleExample>);