react-native - 如何在 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 中为键盘类型实现这个枚举。
解决方案
不幸的是,它仍然没有实施。请参阅此处的视觉指南。
但是,您可以通过https://react-native.canny.io/feature-requests/p/support-keyboardtypeurl-on-android为它投票
推荐阅读
- python - pyspark 内存高效循环将指标列添加到数据帧
- dart - CanvasElement lifeCanvas = querySelector('#lifeCanvas');
- flutter - 颤振:TextField 内部的位置 MaxLength 计数器
- swift - 数据未在 collectionView DiffableDataSource MVVM RxSwift 中显示
- python - 将属性从一个类对象传递到另一个类对象
- python - 用for循环生成矩阵并拼接另一列
- reactjs - 我可以在 HOC(高阶组件)中使用 useState 吗?
- python - 已解决:当我单击 PyQt5 PostgreSQL 中的“添加”按钮时,如何自动添加新号码?
- python - 创建超级用户 django.db.utils.OperationalError 时出现 Django 错误:没有这样的表:auth_user
- go - 如何向 golang 初学者解释通道阻塞机制?