From 97c483ec29190d283cea30747dac979fd5143a33 Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 10 Jun 2016 20:20:07 -0700 Subject: [PATCH] =?UTF-8?q?adds=20textAlignment=20to=20placeholder=20to=20?= =?UTF-8?q?match=20textViews=20alignment=20(for=20m=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Libraries/Text/RCTTextView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/Text/RCTTextView.m b/Libraries/Text/RCTTextView.m index f10cc2605..ea0237868 100644 --- a/Libraries/Text/RCTTextView.m +++ b/Libraries/Text/RCTTextView.m @@ -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];