2

我的 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 中为键盘类型实现这个枚举。

4

1 回答 1

0

不幸的是,它仍然没有实施。请参阅此处的视觉指南。

但是,您可以通过https://react-native.canny.io/feature-requests/p/support-keyboardtypeurl-on-android为它投票

于 2020-10-31T21:41:20.223 回答