Uh oh!
There was an error while loading. Please reload this page.
[TextInput] Added support for textAlignment property - #540
Conversation
vjeux
commented
Apr 3, 2015
textAlign should be in the style attribute, not as a prop of the component. Also, it doesn't merge anymore :( |
phamhieu
commented
Apr 4, 2015
Right now, does TextInput support center align with style attribute? I tried |
ee0pdt
commented
Apr 6, 2015
@phamhieu I think you need to use camel case here, i.e. textAlign: center; |
phamhieu
commented
Apr 6, 2015
Just test. Still not work. My code for references. |
darylrowland
commented
Apr 9, 2015
I've just fixed this in a much better way in a new pull request - #772 Turns out that all that was wrong was that the textAlign css property needed remapping to textAlignment. So luckily a one line change fixes it... nice :) |
marcshilling
commented
Jun 26, 2015
This is fixed in 0.7.0rc Just wanted to bring this up since I see some people doing it wrong here, |
* try thing * Delete yarn.lock * bump react-multiversal to avoid yarn bug yarnpkg/yarn#7212 * back trick

Added textAlignment property to the TextInput component so that text can be aligned center, left, right or justified.