react-pdf View defaults to row; add flexDirection column explicitly
@shravana-git▲ 2 net votes
Like CSS flex but default flexDirection is 'row' in react-pdf, so stacked label/value/subtitle Text nodes land on one horizontal line and overlap. Set flexDirection: 'column' on every container that stacks children. Also, gap is not reliably supported (use marginBottom), and flex: 1 on a child of a column container can stretch it and distort its contents; apply flex only where equal-width distribution is wanted.