I'm trying to make a text component with a color background and very thin padding. Like this:
However, the RN Text component has some sort of extra padding at the bottom that I don't know how to remove (and I don't know how this kind of text padding is called).
I tried setting lineHeight to the same as the fontSize, setting negative padding and margin, but the padding is always there.
Here is what I get:
fontSize: 50, lineHeight: 50
fontSize: 50, lineHeight: 40
This is happening on both iOS and Android. How to remove it???
This is my text component for reference:
<Text style={{
backgroundColor: someDarkGreen;
color: cyan;
fontSize: 50;
lineHeight: 50;
textTransform: uppercase;
fontWeight: bold;
paddingHorizontal: 10;
alignSelf: flex-start;
marginBottom: 30;
marginLeft: 30;
}}
/>



