halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

Make input type password #116

Closed m-arslan01 closed 4 years ago

m-arslan01 commented 4 years ago

I am having issue by making the input type to password . I am using Fumi component from your package.

<Fumi label={'Enter password'} iconClass={FontAwesomeIcon} iconName={'key'} iconColor={'#808080'} iconSize={20} iconWidth={40} inputPadding={16} onChangeText={(password) => setpassword(password)} />

halilb commented 4 years ago

It is handled by react-native  and you can achieve that by passing secureTextEntry={true} prop to any TextInput component. Please checkout https://reactnative.dev/docs/textinput#securetextentry