Text VerticalAlign

How can I best center text vertically?

The only way I found is:

Test: {
h: 80,
text: {
lineHeight: 80,
textBaseline: ‘bottom’,
verticalAlign: ‘middle’,
text: ‘Text’,

Still not perfectly centered.

There is a verticalAlign property you can use. You also can set the lineHeight

Or use Flex

Its the same with CSS - aligning text is hard. Just display it and adjust the pixels.