-
Notifications
You must be signed in to change notification settings - Fork 25k
[TextInput] Added support for textAlignment property #540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
textAlign should be in the style attribute, not as a prop of the component. Also, it doesn't merge anymore :( |
|
Right now, does TextInput support center align with style attribute? I tried |
|
@phamhieu I think you need to use camel case here, i.e. textAlign: center; |
|
Just test. Still not work. My code for references. |
|
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 :) |
|
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
* Document .native.js extension see also facebook/react-native-website#345 * Update platform-specific-code.md

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