You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TextInput] Visual glitch under certain conditions on iOS only #35741
Under very specific circumstance, the TextInput component seems to have a visual glitch. Upon pressing the "Return" key, the caret is not moving to the next line. However, after typing any character, the caret will instantly move to the next line and add the typed character.
changed the title [-][TextInput] Visual glitch under certain conditions on iOS[/-][+][TextInput] Visual glitch under certain conditions on iOS only[/+]on Dec 29, 2022
Description
Under very specific circumstance, the TextInput component seems to have a visual glitch. Upon pressing the "Return" key, the caret is not moving to the next line. However, after typing any character, the caret will instantly move to the next line and add the typed character.
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2022-12-29.at.12.48.11.mp4
Version
Tested on 0.70.5 and 0.68.2
Output of
npx react-native infoSteps to reproduce
The bug triggers under very weird circumstances :
TextInputmust be wrapped into a view that has top margin or padding.TextInputmust be adjacent to aTextcomponent with a custom font size (SVG icons will behave the same).TextInputmust havescrollEnabled={false}and a customlineHeight.Snack, code example, screenshot, or link to a repository
Repository : https://github.com/arcln/react-native-text-input-bug-demo
Run using
expo start.Then try to type some lines into the red text input.