iOS | RN 0.62.2 | The text in the Multiline TextInput starts "jerking" when moving the cursor over it with a long press on the spacebar
See original GitHub issueDescription
On iOS devices, if you add a lot of lines to a multi-line TextInput and then hold down the space bar and try to move the cursor to the desired point, the text starts jerking.
React Native version:
RN: 0.62.2 (also reproducible in 0.63.3) Tested on iPhone 12 pro max (14.3), iPad Pro 9.7 (13.7) and simulators
Steps To Reproduce
- Create multi-line TextInput field
- Add a lot of lines
- On iOS devices hold down the space bar and try to move the cursor to the desired point in the text
- The text starts jerking, it is impossible to move the cursor to the desired point in the text
Expected Results
On iOS devices in a multi-line TextInput user should be able to move the cursor to the desired point in the text.
Snack, code example, screenshot, or link to a repository:
render() {
return (
<View
style={{
flex: 1,
flexDirection: 'column',
paddingTop: 70,
paddingHorizontal: 20,
alignItems: 'center',
justifyContent: 'center',
}}
>
<Text style={{ fontSize: 22, fontWeight: '600', marginBottom: 10 }}>
Multiline TextInput iOS test
</Text>
<TextInput
style={{
height: 150,
fontSize: 16,
width: '90%',
borderColor: 'gray',
borderWidth: 1,
paddingLeft: 5,
paddingRight: 5,
}}
placeholder="Type multiline text here..."
multiline
/>
</View>
);
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
React Native: How to keep multi-line textinput visible above ...
I only want to scroll down when the cursor/current text is not visible. So I can't just run the code above on text...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @artyom4ek, I’ve raised this PR to fix this issue. I’ve tried on iOS 14 (device), iOS 13 (simulator), and seems to be fixed. Would love your help to verify it if possible 🙏.
Also huge thanks for @efstathiosntonas, the PR created based on your suggestion and investigation ❤️
@xiankuncheng great job, thank you. It’s really weird that this issue was under estimated for so long, users were complaining on a daily basis.
Edit: I ll test it tomorrow on iOS 15 device and emulators