To add a password input with React Native, we can set the secureTextEntry
prop to true
.
For instance, we write
<TextInput secureTextEntry={true} style={styles.default} value="abc" />
to set secureTextEntry
to true
to make the TextInput
a password input.