反应本机密码自动填充 ios 11
react native password autofill ios 11
我做了一些研究,但在撰写本文时,我找不到任何方式将 React Native 应用程序与新的 iOS 11 密码自动填充系统集成。
我们是否需要使用授权证书(如此处所述: and https://willowtreeapps.com/ideas/password-autofill-in-ios-11)
我不确定的部分是它如何与 React Native 集成?!
不幸的是,这需要 React Native 的 TextInput
来桥接原生 UITextContentType
。好消息是有一个开放的拉取请求将添加此功能:
https://github.com/facebook/react-native/pull/18526
合并后,您可以像这样支持密码auto-fill:
<TextInput
value={this.state.username}
textContentType="username"
/>
<TextInput
value={this.state.password}
secureTextEntry={true}
textContentType="password"
/>
我做了一些研究,但在撰写本文时,我找不到任何方式将 React Native 应用程序与新的 iOS 11 密码自动填充系统集成。
我们是否需要使用授权证书(如此处所述:
我不确定的部分是它如何与 React Native 集成?!
不幸的是,这需要 React Native 的 TextInput
来桥接原生 UITextContentType
。好消息是有一个开放的拉取请求将添加此功能:
https://github.com/facebook/react-native/pull/18526
合并后,您可以像这样支持密码auto-fill:
<TextInput
value={this.state.username}
textContentType="username"
/>
<TextInput
value={this.state.password}
secureTextEntry={true}
textContentType="password"
/>