react-native-actions-sheet icon indicating copy to clipboard operation
react-native-actions-sheet copied to clipboard

onChange doesn't correctly report position for non-100% snap point

Open tibbe opened this issue 2 years ago • 1 comments

Printed out the offsetFromBottom value as indicated in https://rnas.vercel.app/guides/position and for a 55% snap point (of a total height of 600dp) it reports offset as 133dp, which isn't correct. For the 100% point it correctly reports 600dp and for the closed card it reports -449.4401072839744dp, which is also curious.

tibbe avatar Jul 17 '23 13:07 tibbe

Used the same repro case as in https://github.com/ammarahm-ed/react-native-actions-sheet/issues/306. Then I get the following offsetFromBottom numbers:

100%:  550dp
55%: 55.5dp
0%: -495.3001743516593dp

I'd say this is not working as intended. :)

tibbe avatar Jul 17 '23 13:07 tibbe