Repository navigation
Conversation
Obscures typed characters for password fields and enables the platform's password autofill. iOS sets isSecureTextEntry on the single-line UITextField. Android switches the EditText to the password variation while keeping its text, selection and typeface. Multiline inputs ignore the prop on both platforms.
|
@grgmgd is attempting to deploy a commit to the Margelo Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Password fields currently show their text. This adds
secureTextEntry, matching the React Native prop name.isSecureTextEntryon the single-lineUITextField, which also enables password autofill and turns off suggestions.EditTextto the password input variation. Changing the input type makes EditText reapply its text and switch to a monospace typeface, soNativeTextInputView.replaceInputTypekeeps the text, selection and typeface and skips the edit callback.UITextViewhas no secure entry.The example's Text Input screen has a password field with a Show/Hide toggle. Tested with it on an iOS 27.2 simulator and an Android API 37 emulator: typed text is obscured, and toggling keeps the text and caret. As in other iOS apps, typing into a field that was just obscured again replaces its text.