javascript - 如何在 iphone 6s 和 5s 的键盘上方隐藏图标和文本密码
问题描述
我的屏幕有 3 个TextInput
:电子邮件、重新电子邮件和密码。这是我的代码:
render() {
return (
<View>
<TextInput
placeholder="Mail Address"
onSubmitEditing={() => { this.remail.focus(); }}
keyboardType={"email-address"}
blurOnSubmit={false}
/>
<TextInput
secureTextEntry={false}
ref={(input) => { this.remail = input; }}
keyboardType={"email-address"}
onSubmitEditing={() => { this.password.focus(); }}
placeholder="Enter the mail address again"
/>
<TextInput
secureTextEntry={true}
ref={(input) => { this.password = input; }}
placeholder="Password"
/>
</View>
)
}
当TextInput
重新发送电子邮件焦点时,键盘上方有一个图标和文本密码,如照片:
TextInput
remail
对焦时如何隐藏它?p/s : 仅在 Iphone 5s 和 6s 中显示,Iphone 6 和 5 在键盘上方不显示图标和文字 谢谢!
解决方案
从中删除 secureTextEntry={false}
<TextInput
secureTextEntry={false}
ref={(input) => { this.remail = input; }}
keyboardType={"email-address"}
onSubmitEditing={() => { this.password.focus(); }}
placeholder="Enter the mail address again"
/>
推荐阅读
- sql - 我正在尝试根据两个日期列返回销售额。这种方式正确吗?
- pgadmin-4 - pgadmin 4.9“int”对象没有属性“替换”编辑文本字段
- java - 我应该怎么做才能编写一个自动编辑我的 XML 文件的算法
- makefile - Make build 并行构建多个 make 文件
- html - 如何在 Android 智能手机中制作圆角网页?
- python - IndentationError: unindent 不匹配任何外部缩进级别(重复)
- node.js - MongoDB Atlas 连接错误“无法连接到服务器...”
- javascript - 如何在 JavaScript 中的对象对象中获取 Top 5 和 Lowest 5 值?
- react-redux - react + redux + react-dnd 上的应用程序在组装后不起作用,为什么?
- javascript - 我可以定位多个 div(具有相同的类)以使用 javascript 转义 HTML 特殊实体吗?