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:
Dave 2016-06-10 20:20:07 -07:00 committed by Facebook Github Bot 7
parent 78485a36ba
commit 97c483ec29
1 changed files with 1 additions and 0 deletions

View File

@ -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];