React native 默认情况下,在ios中获得密码中填写的随机值,并且在react native中在android中工作正常

React native 默认情况下,在ios中获得密码中填写的随机值,并且在react native中在android中工作正常,react-native,React Native,应用程序中的密码字段被随机数据填充。这只在iOS中发生,不输入任何值,在react native中的android上不会发生 我正在使用以下输入: <TextInput onChangeText={this.handlePassword} secureTextEntry={this.state.showpassword} style={styles.textinputStyle} value={this.state.password} placeholder="Password" plac

应用程序中的密码字段被随机数据填充。这只在iOS中发生,不输入任何值,在react native中的android上不会发生

我正在使用以下输入:

<TextInput onChangeText={this.handlePassword} secureTextEntry={this.state.showpassword} style={styles.textinputStyle} value={this.state.password} placeholder="Password" placeholderTextColor={colors.white} />


如果用户识别密码输入字段,iOS会自动为其生成密码。更多详细信息可在中找到。

感谢您提供此信息,但在密码字段中,它会生成一个随机的单个值,而不是密码,那么我是如何在ios+react-native.Like中删除此值的?您可以添加构建输入的代码吗@nltiwariA数字有时像1,有时像2等等。。。TextInput代码?TextInput onChangeText={this.handlePassword}secureTextEntry={this.state.showpassword}style={style.textinputStyle}值={this.state.password}占位符=“password”占位符textColor={colors.white}/>如果将
value={this.state.password}
替换为
value=''
,是否会发生这种情况@恩尔蒂瓦里