question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Description

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

  1. Create multi-line TextInput field
  2. Add a lot of lines
  3. On iOS devices hold down the space bar and try to move the cursor to the desired point in the text
  4. 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>
    );
  }

Screen Recording 2021-01-15 at 23 09 13 (1)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
xiankunchengcommented, Sep 11, 2021

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 ❤️

1reaction
efstathiosntonascommented, Oct 5, 2021

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found