Use the passwordIcon attribute of the TextInput component to set the password visibility switch icon at the end of the text box.
Reference
TextInput