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
Android: pasted text in multiline TextInput ignores lineHeight for one frame, then jumps #60207
On Android, text that is pasted into a multiline TextInput with lineHeight is drawn for one frame with the default line spacing, then jumps to the requested lineHeight. With ruled lines behind the input (a notebook look) the text visibly snaps by several lines on every paste. Typing is not affected.
From reading ReactEditText.kt, CustomLineHeightSpan is only added in addSpansFromStyleAttributes, which runs when text is set from JS or for measurement. Text inserted natively (paste, autofill) into an empty field has no span to inherit, so it is laid out without the line height until the controlled value round-trips through JS and the spans are rebuilt. Re-applying the line-height span in TextWatcherDelegator.afterTextChanged when it no longer covers the whole text would avoid the frame.
Related: #46813 (multiline height updates a frame after content). That one is about layout height; this one is the line spacing of the text itself.
Steps to reproduce
Run the reproducer below on Android (emulator or device).
Copy three or four lines of text.
Long-press the empty input and choose Paste.
Record the screen and step through the frames: the first frame after the paste shows the lines packed tighter than 32 px, the next frame shows them on the 32 px rules.
React Native Version
0.81.5
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
React Native 0.81.5, React 19.1.0, Expo SDK 54, New Architecture enabled, Hermes.
Seen on an Android 15 emulator (x86_64) and an Android 17 Pixel 7.
From a screen recording of the paste: in the frame right after the paste the line pitch is about 60 px at device scale; in the next frame it is 84 px (32 dp), so the last line moves down by about 128 px.
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
For majority of bugs: send us a Pull Request with the RNTesterPlayground.js edited to reproduce your bug.
Activity
react-native-bot commentedon Nov 21, 2026
Warning
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
You can read more about about it on our website: How to report a bug.
karroge10 commentedon Nov 21, 2026
Added a Snack reproducer: https://snack.expo.dev/zPf9gw4MWrM457bRuFSay (run on Android, paste three or four lines into the empty input and step through a screen recording).