-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Text] Add support for vertical-align style property #1774
Comments
Not a perfect solution and I'm not sure if it's going to be implemented but could you not offset the |
@MossP Hmmm!! That's good thinking. It's a possible solution for sure, and seems watertight. I'll give that a try soon... |
Hope it goes well :) I'll get this closed for now and if you're still having problems give me a shout and we'll look at re-opening it. One to close for now @brentvatne, thanks. |
This seems like a reasonable request - support for vertical-align, or at least some subset of it, would be a valuable addition to the core. cc @vjeux |
I have this problem too. on IOS, text is bottom align and on Android, text at the top position of rect. how do I ? |
Aligning text is pretty annoying right now and requires way too much work. Is the only way to align text today is to wrap the element inside some container and align the whole View inside the wrapping container ? |
Doesn't flexbox already handle this via |
@cpjolicoeur it seems not working. |
@cpjolicoeur |
@fatuhoku That's is right,when you want 2 or more lines to be in vectical center,you need to add a container to wrapp them. |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/text-add-support-for-vertical-align-style-property ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a pull request with a fix. |
this feature is now available or not ? |
Any updates? |
No it is not available. Even in late 2017 creating a simple superscript in React Native seems an impossible task. |
I've marked the line rectangle with faint red:
The text is sitting on the bottom of that rectangle. i.e. it's anchored to the bottom.
I was expecting the line spacing to be below the text, i.e. text should be anchored to the top of the line rectangle.
When will support of this come?
The text was updated successfully, but these errors were encountered: