This diff lets the user skip entering the password again for the "Confirm password" TextInput if the primary TextInput was autofilled.
Unfortunately this has to be different for iOS and Android. It's particularly important on Android, where for some reason the password autofill prompt doesn't even appear for the "Confirm password" TextInput.
- For iOS, we do what we currently do in RegisterPanel. We listen for onKeyPress events, and when we get a "key press" that is multiple characters we know that's a password autofill. iOS triggers onKeyPress like this for password autofill, but NOT for paste.
- On Android, onKeyPress is not triggered when a password is autofilled. Instead, we look for an onChangeText event that increases the length of the text by more than one character. This will trigger for paste events as well as for password autofill.
In both cases, we only modify the "Confirm password" TextInput if it's empty at the time the primary TextInput is modified.