Add secureTextEntry to password AppTextInput

This commit is contained in:
emelko
2020-12-20 12:59:41 +01:00
parent 748b5bcbd1
commit b00b97d411
2 changed files with 3 additions and 0 deletions
@@ -70,6 +70,7 @@ export default class ConfirmWithPassword extends Component {
onChangeText={this.handlePasswordInput} onChangeText={this.handlePasswordInput}
placeholder={labels.enterCurrent} placeholder={labels.enterCurrent}
value={password} value={password}
secureTextEntry={true}
/> />
<View style={styles.container}> <View style={styles.container}>
<Button onPress={this.props.onCancel}> <Button onPress={this.props.onCancel}>
@@ -69,12 +69,14 @@ export default class EnterNewPassword extends Component {
placeholder={labels.enterNew} placeholder={labels.enterNew}
textContentType="password" textContentType="password"
value={password} value={password}
secureTextEntry={true}
/> />
<AppTextInput <AppTextInput
onChangeText={this.handleConfirmationInput} onChangeText={this.handleConfirmationInput}
placeholder={labels.confirmPassword} placeholder={labels.confirmPassword}
textContentType="password" textContentType="password"
value={passwordConfirmation} value={passwordConfirmation}
secureTextEntry={true}
/> />
{shouldShowErrorMessage && {shouldShowErrorMessage &&
<AppText style={styles.error}>{labels.passwordsDontMatch}</AppText> <AppText style={styles.error}>{labels.passwordsDontMatch}</AppText>