Skip to content

Commit

Permalink
Enabled textAlign in TextInput
Browse files Browse the repository at this point in the history
Summary:
Added remapping of style textAlign property to textAlignment (which is the name of the same property on text input components)
Closes facebook#772
Github Author: Daryl Rowland <[email protected]>

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?
  • Loading branch information
Daryl Rowland committed Jun 24, 2015
1 parent 4ac5c7e commit a5db0ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions React/Views/RCTTextFieldManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ - (UIView *)view
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)];
Expand Down

0 comments on commit a5db0ce

Please sign in to comment.