Skip to content

Commit

Permalink
Add more TextInput properties to SecureTextInput (#642)
Browse files Browse the repository at this point in the history
Co-authored-by: Nat Andreeva <nandreeva@fb.com>
  • Loading branch information
natandreeva and Nat Andreeva committed Nov 2, 2020
1 parent 46b4eb6 commit 2c46ccc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ - (void)setUseSecureTextField:(BOOL)useSecureTextField {
} else {
_backedTextInputView = [[RCTUITextField alloc] initWithFrame:self.bounds];
}
_backedTextInputView.placeholder = previousTextField.placeholder;
_backedTextInputView.placeholderColor = previousTextField.placeholderColor;
_backedTextInputView.selectionColor = previousTextField.selectionColor;
_backedTextInputView.textAlignment = previousTextField.textAlignment;
_backedTextInputView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_backedTextInputView.textInputDelegate = self;
_backedTextInputView.text = previousTextField.text;
Expand Down

0 comments on commit 2c46ccc

Please sign in to comment.