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

android num-pad keyboard extreme lag after typing #22283

Closed
3 tasks done
piubellofelipe opened this issue Nov 15, 2018 · 4 comments
Closed
3 tasks done

android num-pad keyboard extreme lag after typing #22283

piubellofelipe opened this issue Nov 15, 2018 · 4 comments
Labels
API: Keyboard Bug Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@piubellofelipe
Copy link

Environment

Run react-native info in your terminal and paste its contents here.

  React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
      Memory: 136.46 MB / 8.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 11.1.0 - /usr/local/bin/node
      Yarn: 1.0.1 - /usr/local/bin/yarn
      npm: 5.5.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 23.0.3, 25.0.0, 26.0.1, 26.0.3, 27.0.3, 28.0.3
        System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.0 AI-171.4443003
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.1 => 16.6.1
      react-native: 0.57.5 => 0.57.5

Description

I believe that RN's TextInput has some kind of bug related to "num-pad" or "numeric" keyboard on Android. This bug makes the Android keyboard pretty much unusable after a few minutes of typing straight. Closing the app doesn't help, restarting device does.

Reproducible Demo

Both the snack.expo and the repo are a simple TextInput with autoFocus and keyboardType='num-pad'. I had to type about ~800 characters before keyboard started to lag. At ~2000 it was pretty much unusable.
I tested on a Xiaomi Redmi Note 5, Android 8.1.0 and Gboard (default) as device keyboard

I also believe this could be related to #20119, as I discovered this one while trying to solve #20119

@piubellofelipe piubellofelipe changed the title android lag android num-pad keyboard extreme lag after typing Nov 15, 2018
@dfirmino
Copy link

No update for this?

@piubellofelipe
Copy link
Author

No update for this?

No, still facing this issue.

Also, I was able to reproduce it on 0.48.0 when using styled textinput (with color, brackgroundColor, fontSize and width). When not using styled textInput, it doesn't happen in 0.48.0

My next solution is to make a native TextInput component myself, or maybe someone has done it already?

@stale
Copy link

stale bot commented Aug 2, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 2, 2019
@stale
Copy link

stale bot commented Aug 9, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Aug 9, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API: Keyboard Bug Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

4 participants