adds textAlignment to placeholder to match textViews alignment (for m…
Summary: Submitting PR for adding textAlignment to the placeholder of textView so that it matches the alignment of the actual value text Closes https://github.com/facebook/react-native/pull/7429 Differential Revision: D3422007 fbshipit-source-id: e255c2d86dbaa0e197328a56ec81cbab2735c53d
This commit is contained in:
parent
78485a36ba
commit
97c483ec29
|
@ -271,6 +271,7 @@ static NSAttributedString *removeReactTagFromString(NSAttributedString *string)
|
|||
NSFontAttributeName : (_textView.font ? _textView.font : [self defaultPlaceholderFont]),
|
||||
NSForegroundColorAttributeName : _placeholderTextColor
|
||||
}];
|
||||
_placeholderView.textAlignment = _textView.textAlignment;
|
||||
|
||||
[self insertSubview:_placeholderView belowSubview:_textView];
|
||||
[self _setPlaceholderVisibility];
|
||||
|
|
Loading…
Reference in New Issue