-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
textAlign: 'justify' not working #202
Comments
Android does not support |
@clytras : Yes justify is not working in android. In ios, it just works fine. Is there any workaround for android? |
react-native 0.59 render-html 4.1.2 not working justify for textAlign . |
Yes that feature is not supported natively by Android OS , thats why react native can't do it from outside but as a workaround you can use webview (kinda dirty solution) . |
As of now, from react-native 0.60, the |
I am closing because the issue is upstream (react native) and has been fixed since release 0.60. |
@jsamr Apparently I am facing this issue on RN 0.60+ and Android API 31, rendering with textAlign:'justify' not working as expected.. it works with regular Facing issue only on Android, iOS side words as expected. Moreover on android side the Github issue reference: ecency/ecency-mobile#2157 |
@noumantahir I suggest that you provide a full reproduction in a separate ticket, with the exact HTML snippet, library version and React Native version, and I will be happy to investigate and test on my machine! https://github.com/meliorence/react-native-render-html/issues/new/choose |
@jsamr apologies for inconvenience, I dug more deep today, apparently if we set Sample code attached anyways, if we set selectable to false, the text will start justifying.
|
@noumantahir No worries! It is yet another layout bug in React involving |
This fixed my issue. Thanks! |
In 2023, still not working to add 'textAlign: justify' on android. Please help |
In 2024, still not working to add 'textAlign: justify' on android. |
Is this a bug report or a feature request?
bug report.
Have you read the guidelines regarding bug report?
Yes, I did.
Have you read the documentation in its entirety?
Yes, I did.
Have you made sure that your issue hasn't already been reported/solved?
I'm sure of that.
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
I'm only testing on Android.
Is the bug reproductible in a production environment (not a debug one)?
Never tried. But pretty sure that gets the same result.
Have you been able to reproduce the bug in the provided example?
I'm gonna say no and keep going, hopping for the best.
Environment
Environment:
React: 16.6.0-alpha.8af6728
React native: 0.57.4
react-native-render-html: 3.10.0
Target Platform:
Android (7.0)
Steps to Reproduce
I'm just expecting for
textAlign:'justify'
work, so...Expected Behavior
Expect justified paragraphs. But only works with textAlign
right
orcenter
.Actual Behavior
It gets align to
left
as default I guess.Reproducible Demo
Sorry, but I'm just hopping for the best.
The text was updated successfully, but these errors were encountered: