首页 > 解决方案 > 如何在 React Native for Android 上设置 keyboardType = "web-search" 或 "url"?

问题描述

我的 React-Native 应用程序在 Android 设备上运行。

在 TextInput 中,我可以将 keyboardType 更改为跨平台值,例如“numeric”和“email-address”等。现在我需要将 keyboardType 设置为“ web-search ”或“ url ”,但它没有任何作用安卓上的变化。

我按照这个链接: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 中为键盘类型实现这个枚举。

标签: react-nativeurlenumskeyboardweb-search

解决方案



推荐阅读