Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30350

Problem with a React-Native password textInput

$
0
0

I created a textInput component for the user to enter a password.

When the user types a password in, the password appears hidden.

However, when the user presses the 'Show Password' button I would like the password color to change so it is visible.

I have function for this, however when it is executed, instead of changing the color it deletes the password text.

Function:

if (...) {
....
this.state.passTextColor = 'black';
....
}

Any help would be much appreciated!


Viewing all articles
Browse latest Browse all 30350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>