From a5db0ce0dee4d46d0b7b012cd2c36bba3af7f133 Mon Sep 17 00:00:00 2001 From: Daryl Rowland Date: Wed, 24 Jun 2015 15:02:04 -0700 Subject: [PATCH] Enabled textAlign in TextInput Summary: Added remapping of style textAlign property to textAlignment (which is the name of the same property on text input components) Closes https://github.com/facebook/react-native/pull/772 Github Author: Daryl Rowland Test Plan: Not sure. I tried cleaned and rebuilt and my TextInput works, though! Do we need to set up any unit tests or examples for this? --- React/Views/RCTTextFieldManager.m | 1 + 1 file changed, 1 insertion(+) diff --git a/React/Views/RCTTextFieldManager.m b/React/Views/RCTTextFieldManager.m index 3d440665a..cc71b39fa 100644 --- a/React/Views/RCTTextFieldManager.m +++ b/React/Views/RCTTextFieldManager.m @@ -39,6 +39,7 @@ RCT_EXPORT_VIEW_PROPERTY(secureTextEntry, BOOL) RCT_REMAP_VIEW_PROPERTY(password, secureTextEntry, BOOL) // backwards compatibility RCT_REMAP_VIEW_PROPERTY(color, textColor, UIColor) RCT_REMAP_VIEW_PROPERTY(autoCapitalize, autocapitalizationType, UITextAutocapitalizationType) +RCT_REMAP_VIEW_PROPERTY(textAlign, textAlignment, NSTextAlignment) RCT_CUSTOM_VIEW_PROPERTY(fontSize, CGFloat, RCTTextField) { view.font = [RCTConvert UIFont:view.font withSize:json ?: @(defaultView.font.pointSize)];