react-native - 如何在 React Native for Android 上设置 keyboardType = "web-search"或 "url"?

标签 react-native url enums keyboard web-search

我的 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/

相关文章:

javascript - React Native 在 props.function() 调用中抛出 "undefined is not a function"

html - 通过电子邮件共享 url(自动捕获 url)

c++ - 使用枚举的一些很好的例子

javascript - 如何防止组件随着 View 的增长而向上移动

react-native - 如何在输入中使用 react-native-datetime-modal-picker?

Android Studio 不显示代码更改并且无法生成最近更改的签名 apk

c# - Swashbuckle - 在 swagger 文档中将字符串视为枚举

django - url 中带问号的问题

url - 避免在 Java Web 应用程序中使用浏览器缓存

ruby-on-rails - ActiveRecord枚举错误: “is not a valid value”