evblurbs / react-native-md-textinput

React Native TextInput styled with Material Design.
322 stars 122 forks source link

Password input #20

Open savelichalex opened 8 years ago

savelichalex commented 8 years ago

What about inputs like password?

cem2ran commented 8 years ago

As TextField passes along props to TextInput you can use all the available props from TextInput. In your case your would use the following prop: secureTextEntry

AndroConsis commented 8 years ago

YES I used, and Its not working :-1:

aktraore commented 8 years ago

Well It worked for me @AndroConsis by just putting secureTextEntry={true} like in the TextInput, but I didn't test for IOS...

thngdude commented 8 years ago

Not working for me either version 2.0.4

skyride99 commented 8 years ago

Having the same issue are their any work arounds?

benniemosher commented 7 years ago

It works for me if I use it like this:

<TextField
  label={'Password'}
  highlightColor={'#3E5BB9'}
  ref="password"
  placeholder="Password"
  secureTextEntry={true}
  autoCapitalize="none"
  returnKeyType="go"
  onSubmitEditing={(event) => { if (!this.state.loggingIn){ this._loginSubmit(); }} } />
joeybenenati commented 7 years ago

same thing for me. Strange, because I can even see the secureTextEntry: true prop on the nested TextInput component when looking at the inspector. It just does't take the setting...