react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Add `gap` property to StyleSheet API

Open JuanM04 opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. When generating dynamic content (like tables), gap provides a simple way of creating spaces between elements inside a flexbox without necessity of doing weird things with margins and widths.

Describe the solution you'd like Maybe something like gap, gapVertical and gapHorizontal.

JuanM04 avatar Sep 27 '21 22:09 JuanM04

@react-pdf uses yoga layout under hood and gap should be implemented in yoga first

Upvote this issue if you agree. https://github.com/facebook/yoga/issues/812

jeetiss avatar Sep 29 '21 11:09 jeetiss

There seems to finally be activity on the PR that implements gap for yoga https://github.com/facebook/yoga/pull/1116

process0 avatar Aug 24 '22 04:08 process0

Since the PR is still pending, here is a solution I found which work fine: flex-gap-in-unsupported-browsers

axel7083 avatar Sep 20 '22 19:09 axel7083

Seems it has been implemented in yoga.

ajayvikas avatar Nov 11 '22 00:11 ajayvikas