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] switching keyboard types default/email-address -> numeric/phone-pad hangs JS thread #36878

Closed
nkpatnis opened this issue Apr 11, 2023 · 1 comment

Comments

@nkpatnis
Copy link

nkpatnis commented Apr 11, 2023

Description

Hi, it's weird but I've verified by upgrading to the latest RN version as well, [tested in 0.70.5, 0.71.6]

when we click on the default keyboard type input field and then click on the numeric keyboard type input, initially nothing happens, but after 10-20 times JS thread just freezes, it neither gives ANR nor allows to focus on any other field.
might be the case when the keyboard gets dismissed and then appears

this happens exponentially, in our code, we have a pretty simple UI(form screen).
I've checked the number of times all our components are re-rendering, and there is nothing that should impact performance this much. Still even after using React.memo and other optimization where needed, this issue is not getting resolved.

another keyboard/TextInput related issue I found is
#35590

Please help

React Native Version

0.70.5, 0.71.6

Output of npx react-native info

System:
OS: macOS 13.2.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 589.34 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.19.1 - /usr/local/bin/node
Yarn: Not Found
npm: 7.24.2 - ~/VSCode/myapp/node_modules/.bin/npm
Watchman: 2023.04.03.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK:
API Levels: 28, 29, 31, 33, 33
Build Tools: 30.0.3, 31.0.0, 33.0.0, 33.0.2
System Images: android-31 | Google APIs Intel x86_64 Atom, android-33 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

Switch between multiple keyboard types TextInput many times(focus/unfocus)
It happens in emulator and Device both (android)

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

@github-actions
Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@nkpatnis nkpatnis closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants