[TextInput] switching keyboard types default/email-address -> numeric/phone-pad hangs JS thread #36878
Labels
API: Keyboard
Component: Switch
Component: TextInput
Related to the TextInput component.
Needs: Triage 🔍
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
The text was updated successfully, but these errors were encountered: