Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Password TextInput throws warnings

Tags:

react-native

I have a TextInput field that I want to use for password as such

<TextInput secureTextEntry="true"></TextInput>

but I keep getting this warning in the iOS emulator and also in the chrome debug tools

Failed propType: Invalid prop `secureTextEntry` of type `string` supplied to `TextInput`, expected `boolean`.

I am on "react-native": "^0.16.0"

like image 521
Qudoos Avatar asked Dec 10 '15 19:12

Qudoos


Video Answer


1 Answers

Try this:

<TextInput secureTextEntry={ true }></TextInput>
like image 172
Nader Dabit Avatar answered Oct 25 '22 17:10

Nader Dabit