react-navigation-header-buttons icon indicating copy to clipboard operation
react-navigation-header-buttons copied to clipboard

Double margin on iOS/android when used with @react-navigation/native-stack

Open yangm97 opened this issue 3 years ago • 2 comments

It appears that the only platform not getting margins for free is web.

See the snack from react navigation for buttons.

yangm97 avatar Sep 20 '21 21:09 yangm97

Running into this as well. Any workarounds?

cmaycumber avatar Dec 29 '21 17:12 cmaycumber

@cmaycumber this is how I got around it: https://gist.github.com/yangm97/d629025e0a40254f94bfffed22a55dc3

Didn't send a PR because it also removes margins/paddings when used with the non native stack navigator and I'm not sure if/how we could detect which navigator is in use automatically.

yangm97 avatar Jan 06 '22 12:01 yangm97