How can I make keyboardType = "web-search" or "url" on React Native for Android?

2k views Asked by At

I have my React-Native app run on Android device.

In the TextInput, I can change the keyboardType to cross-platform values like "numeric" and "email-address", etc. Now I need the keyboardType to be "web-search" or "url" but it doesn't make any changes on Android.

I follow this link: https://facebook.github.io/react-native/docs/textinput.html#keyboardtype

which has this part:

enum('default', 'email-address', 'numeric', 'phone-pad', 'ascii- capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone- pad', 'decimal-pad', 'twitter', 'web-search', 'visible-password')

I don't really understand how to implement this enum for keyboardType in React Native on Android.

1

There are 1 answers

0
Jay Wick On

Unfortunately it is still not implemented. See the visual guide here.

You can however vote for it via https://react-native.canny.io/feature-requests/p/support-keyboardtypeurl-on-android