react-native: [Android] TextView doesn't support letter spacing and padding

  1. padding of a TextView is ineffective, the dimension seems right, but the content is not placed correctly
  2. the text (not the TextView) ‘inherits’ the background color, so it looks like there’s an overlapped layer

2015-10-05 7_53_46

it should look like this: 2015-10-05 7 49 50

  • RN v0.11.4
  • Android 5.1.1

code:

    <Text style={{
        backgroundColor: 'rgba(100,230,100,.7)',
        padding: 25,
        color: 'white',
        fontWeight: 'bold',
      }}
      >
      Hello
    </Text>

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 14
  • Comments: 28 (13 by maintainers)

Most upvoted comments

You can’t image how heart-breaking it was when I first fired up my ‘fine tuned’ iOS version on Android…

I think point 1. was fixed in c3f2bba834a5ffcc42352bb738132baceafce76d.

For those interested there is a new PR that fixes letter spacing in Android https://github.com/facebook/react-native/pull/9420 /cc @rburgst

I would like to split this issue, since padding and letter spacing don’t really have anything to do with each other. Padding should be easily fixable regardless of the letter spacing issue (which is much harder to fix).

Have same issue with padding for android platform, no problems with iOS in the same time! Any chances to get that fixed soon?