-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[Style] "letterSpacing" and "padding" is not effective on <Text /> #3485
Comments
Confirmed in this example: https://rnplay.org/apps/5M_0Nw |
@crm416 thanks for the research. @mkonicek @vjeux what do you want to do here if old Android doesn't support a feature? Looks like AppCompatTextView doesn't backport letterSpacing (https://developer.android.com/reference/android/support/v7/widget/AppCompatTextView.html) so we may need to reimplement text rendering if we wanted this. Or we could get it working on modern Android (if it doesn't work already) and mention that in the RN docs. |
We don't expose this property yet on android (even on API 21+) On API <21 we could potentially implement it using Anyone fancy sending PR? |
Sounds like a good plan. I've marked this as "Help Wanted" for enthusiastic contributors. |
@kmagiera I'd be happy to give it a shot. |
@crm416 Did you already have a chance to take a shot here? :) |
@PhilippKrone not yet! been a little busy. feel free to take it over if you're interested. |
I started working on this tonight, but it's turning out to be non-trivial. The issue is that bumping up the letter spacing can in turn increase the number of lines in the text, and so On that note: please let me know if I'm missing something obvious! Very new to this codebase. |
Closing in favor of #3233 |
See also #13199 |
platform: Android4.3
simulator: Genymotion,Google Nexus 4, Android 4.3
react native version: 0.12.0
react-native-cli: 0.1.5
but result is:
seems
letterSpacing
andpadding
is not supportedThe text was updated successfully, but these errors were encountered: