Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react native password autofill ios 11

I've done some research but, at the time of writing, I cannot find any way of a React Native app integrating with the new iOS 11 password autofilling system.

Do we need to use entitlement certificates (as mentioned here: Password AutoFill for iOS App and https://willowtreeapps.com/ideas/password-autofill-in-ios-11)

The part I'm not sure is how that integrates with React Native?!

like image 993
Nick Avatar asked Feb 04 '23 04:02

Nick


1 Answers

Unfortunately this requires React Native's TextInput to bridge the native UITextContentType. The good news is that there is an open pull request that will add this functionality:

https://github.com/facebook/react-native/pull/18526

Once merged, you can support the password auto-fill like so:

<TextInput
    value={this.state.username}
    textContentType="username"
/>
<TextInput
    value={this.state.password}
    secureTextEntry={true}
    textContentType="password"
/>
like image 84
Albert Martin Avatar answered Feb 10 '23 23:02

Albert Martin