Mask password input
This commit is contained in:
@@ -106,5 +106,6 @@ export const bleedingPrediction = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const passwordPrompt = {
|
export const passwordPrompt = {
|
||||||
title: 'Log in'
|
title: 'Log in',
|
||||||
|
enterPassword: 'Enter password here'
|
||||||
}
|
}
|
||||||
@@ -61,6 +61,8 @@ export default class PasswordPrompt extends Component {
|
|||||||
<TextInput
|
<TextInput
|
||||||
onChangeText={val => this.setState({ password: val })}
|
onChangeText={val => this.setState({ password: val })}
|
||||||
style={styles.passwordField}
|
style={styles.passwordField}
|
||||||
|
secureTextEntry={true}
|
||||||
|
placeholder={passwordPrompt.enterPassword}
|
||||||
/>
|
/>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.settingsButton}
|
style={styles.settingsButton}
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ export default class PasswordSetting extends Component {
|
|||||||
}}
|
}}
|
||||||
value={this.state.currentPassword}
|
value={this.state.currentPassword}
|
||||||
placeholder={labels.passwordSettings.enterCurrent}
|
placeholder={labels.passwordSettings.enterCurrent}
|
||||||
|
secureTextEntry={true}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user