Skip to content

Conversation

@mlabrum
Copy link
Contributor

@mlabrum mlabrum commented Sep 16, 2016

Hey,

I've added support to unmask the password field (opt in) https://material.google.com/components/text-fields.html#text-fields-password-input

output

it requires the user to supply the icon files that will be displayed (I didn't want to add a dependency to react native vector icons)

This is how its used

<TextInput
    label="Enter Password"
    secureTextEntry={true}
    value={this.state.text}
    onChangeText={(text) => this.setState({text: text})}
    secureTextAllowUnmask={true}
    secureTextAllowUnmaskIconOn={<Icon name="visibility"/>}
    secureTextAllowUnmaskIconOff={<Icon name="visibility-off"/>}
/>

this pull request is based from #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant