我的 React-Native 应用程序在 Android 设备上运行。
在 TextInput 中,我可以将 keyboardType 更改为跨平台值,如“numeric”和“email-address”等。现在我需要将 keyboardType 设置为“web-search”或"url"但它在 Android 上没有做任何更改。
我点击此链接:https://facebook.github.io/react-native/docs/textinput.html#keyboardtype
其中有这部分:
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')
我真的不明白如何在 Android 上的 React Native 中为 keyboardType 实现这个枚举。
最佳答案
不幸的是,它仍然没有实现。查看视觉指南 here .
但是您可以通过 https://react-native.canny.io/feature-requests/p/support-keyboardtypeurl-on-android 为它投票
关于react-native - 如何在 React Native for Android 上设置 keyboardType = "web-search"或 "url"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53258603/