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!