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.

Keyboard language switch to QWERTY with all numeric keyboardType

See original GitHub issue

Description:

It seems that when your keyboard language isn’t set to English (US) and you focus on a TextInput with a keyboardType=“numeric” prop, it will change the keyboard language to English (US).

I tried with “number-pad”, “decimal-pad”, “numeric”, “phone-pad”. None of them works as expected. I tried with different languages:

Issues appear on French (France) German (Germany) Italian

No issue Arabic, Najdi

React Native version:

System:
  OS: macOS 10.15.1
  CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  Memory: 1.14 GB / 16.00 GB
  Shell: 5.7.1 - /bin/zsh
Binaries:
  Node: 10.16.3 - /usr/local/bin/node
  Yarn: 1.15.2 - /usr/local/bin/yarn
  npm: 6.9.0 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
  iOS SDK: 
   Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs: 
  Android Studio: 3.4 AI-183.6156.11.34.5522156
  Xcode: 11.3/11C29 - /usr/bin/xcodebuild
npmPackages:
  react: 16.9.0 => 16.9.0 
  react-native: 0.61.5 => 0.61.5 
npmGlobalPackages:
  react-native-cli: 2.0.1

Steps To Reproduce

1- Start your iOS simulator 2- Go to Settings / General / Keyboard 3- Make sure you have English (US) and French (France) keyboards 4- then:

react-native init keyboardSwitchToQwerty

5- Edit your App.js file as below:

const App = () => (
  <View>
    <TextInput />
    <TextInput keyboardType="decimal-pad" />
  </View>
);

6- Open the app 7- Set your keyboard to French (France) and switch between the two <TextInput /> 8- Issu: Your keyboard will automatically switch to English (US)

Expected Results

The keyboards shouldn’t switch to English (US) by itself. It should stay on the French (France):

To make this GIF possible, I removed the English (US) keyboard from Settings

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:16

github_iconTop GitHub Comments

8reactions
devpolocommented, Mar 2, 2020

Any news?

7reactions
morgane1806commented, May 1, 2020

I finally found a solution that worked for me 😁

Issue

This is an IOS issue, when you use a numeric keyboard, it changes the keyboard language and uses app default language : variable CFBundleDevelopmentRegion –> In my case CFBundleDevelopmentRegion was “en”, that’s why it transformed azerty keyboard to qwerty keyboard

Solution

Solution that worked for me : Remove the following 2 lines in info.plist

<key>CFBundleDevelopmentRegion</key>
<string>en</string>
Read more comments on GitHub >

github_iconTop Results From Across the Web

My keyboard is set to US English QWERTY but does not type ...
Press Windows icon key on the keyboard, type Settings and select the top most search result. · Select Time & Language from the...
Read more >
QWERTY, AZERTY, Huh? How to Change Keyboard ...
QWERTY TO AZERTY keyboard shortcut: to switch between keyboard layouts, press Alt+Shift. Repeat steps 7 and 8 to change your keyboard to English ......
Read more >
List of QWERTY keyboard language variants - Wikipedia
PolishEdit ; Off, right Alt, ą ; Off · Shift & right Alt, Ą ; On, right Alt, Ą ; On · Shift...
Read more >
Add or change keyboards on iPhone - Apple Support
Go to Settings > General > Keyboard > Keyboards. Tap a language at the top of the screen, then select an alternative layout...
Read more >
Laptop Keyboard Layout Identification Guide | Keyshorts Blog
Efficient ways to physically change the layout on your keyboard, or to have ... Used by writers and programmers as a faster alternative...
Read more >

github_iconTop Related Medium Post

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