Based on the docs, if we set textContentType to username and password, the keyboard should have an option to autofill. But somehow It is not working for me.
<TextInput
textContentType='username'
style={{ width: 300, height: 50, borderWidth: 1 }}
value={this.state.currentEmail}
onChangeText={this.handleChangeTextEmail}
/>
<TextInput
textContentType='password'
value={this.state.currentPassword}
textContentType="password"
style={{ width: 300, height: 50, borderWidth: 1, marginTop: 10 }}
onChangeText={this.handleChangeTextPassword}
secureTextEntry
/>
Is there anyone facing the same problem or is there anyway to fix this?
EDIT:
I'm using Iphone X (real device) Iphone 11(Simulator) both ios version is 11+
autoComplete={true}for Android. For IOS, it should suffice to only add the textContentType.iCloud Keychain is used: Settings → Apple ID → iCloud → Keychain → toggle "On" the iCloud Keychain.