Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput multiline is jumpy and flaky when pressing new line #33165

Open
aprilmintacpineda opened this issue Feb 23, 2022 · 18 comments
Open

TextInput multiline is jumpy and flaky when pressing new line #33165

aprilmintacpineda opened this issue Feb 23, 2022 · 18 comments
Labels
Component: TextInput Related to the TextInput component. Needs: Triage 🔍

Comments

@aprilmintacpineda
Copy link

Description

When you set mutline to true and enter/delete new lines, the scrolling is really flaky. Notice that this app was instantiated with npx react-native init myapp --template react-native-template-typescript

Android

android.mov

iOS

ios.mov

Version

0.67.2

Output of npx react-native info

info Fetching system and libraries information...
System:
    OS: macOS 11.6
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
    Memory: 72.38 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.17 - ~/projects/samalapit/sellers/mobile-app/node_modules/.bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
    Watchman: 2021.12.06.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /Users/aprilmintacpineda/.rvm/gems/ruby-3.0.2/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7935034
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.11 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.67.2 => 0.67.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

import { TextInput } from 'react-native';
<TextInput
  style={{
    borderWidth: 1,
    borderColor: '#000'
  }}
  multiline
/>

Adding scrollEnabled={false} will somehow fix the issue but:

  • it's not viable if you need the scrolling to be enabled.
  • It only fixes it for iOS, Android will still have a problem especially when delete new lines fast as seen in the video above.

Snack, code example, screenshot, or link to a repository

No response

@aprilmintacpineda
Copy link
Author

Am I really the only one experiencing this? It's quite weird that this isn't getting any attention, because it's literally just plain text input so I would expect others to experience this.

@efstathiosntonas
Copy link

@aprilmintacpineda I’m encountering the same thing, awaiting for a fix

@aprilmintacpineda
Copy link
Author

aprilmintacpineda commented Mar 3, 2022

@aprilmintacpineda what react native version you’re using? A fix has been merged a while back.

0.67.3

I just saw 0.67.4 but the release notes doesn't talk about anything related to ios, it talked about a text input bug related to android. I'm just about to try it.

EDIT:

I'm now on 0.67.4 it still happens

@aprilmintacpineda I’m encountering the same thing, awaiting for a fix

Thanks for confirming! That gives me hope!

@efstathiosntonas
Copy link

efstathiosntonas commented Mar 3, 2022

@aprilmintacpineda ignore the first quote on your comment above, I confused the issues 🥴.

@Omelyan
Copy link

Omelyan commented Jul 15, 2022

oh, this has been around for years. yes it's a regular text input that flickers in a very basic scenario so user can tell for sure if the app was made using RN))
the problem seems to be due to lack of space to render the string, or some like that, so I made a wrapper that measures the size of text and sets a min height (+some extra actually) for the input. Not perfect, bu now I'm using it.

@efstathiosntonas
Copy link

@Omelyan do you mind sharing the wrapper?

@JCown
Copy link

JCown commented Apr 25, 2023

Any update on that?

@jonasmoeller
Copy link

Same Issue here, I'm trying to make a Note writting app.
This only seems to happen when the TextInput Field is not already covering the whole screen, as soon as you get into the range where you can scroll your text it stops the behaviour.

@Norcy
Copy link

Norcy commented Aug 29, 2023

Adding scrollEnabled={false} can solve it

@alexking
Copy link

alexking commented Jan 2, 2024

Also experiencing this problem - feels like it should be prioritized as it makes long text input unusable (unless you can turn off scrolling).

Related: #16826

Copy link

github-actions bot commented Jul 1, 2024

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jul 1, 2024
@Omelyan
Copy link

Omelyan commented Jul 1, 2024

this issue is not stale as it still exists.

@github-actions github-actions bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jul 2, 2024
@AspireOne
Copy link

Well, here we are, in September 2024, and the issue still exists.

@jonasmoeller

This comment was marked as abuse.

@Kakaranara
Copy link

Oct 2024 issue still exist.

@naytun
Copy link

naytun commented Oct 15, 2024

According to @dan_abramov2, removing Multiline will fix this. Here's the source YouTube, X (Twitter)

cc: @Kakaranara @AspireOne @Omelyan @alexking

@brandon-austin-lark
Copy link

Nov 2024 still broken

@AshishRnDev
Copy link

It's 2025 still broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: TextInput Related to the TextInput component. Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests