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

2 Actionsheets open and close at the same time Problem

Open jonxssc opened this issue 2 years ago • 3 comments

So i have the problem, that when navigating to another Stackscreen which contains Actionsheets and then when opening one it looks normal, but when pulling it down or pressing on the Backdrop so it snaps down, it does it, but till the going down animation runs, in the background is a second Actionsheet that stays till the first one is full offscreen and then fades out. I dont know why this happens, when reloading the app it isnt there anymore. Has anyone had or has this problem? In the files below you see what i mean.

image_67168257

https://user-images.githubusercontent.com/101802060/215344720-ce1968e6-af56-4f79-92f7-15e88d72da40.MOV

jonxssc avatar Jan 29 '23 17:01 jonxssc

This is probably happening because you have multiple sheet providers, one on each screen of the stack. You should instead use a single global provider at top of your app above the navigator.

ammarahm-ed avatar Feb 13 '23 07:02 ammarahm-ed

so yes i have a sheetprovider on every screen, because on ios it is not working with one global sheetprovider above the navigation. But even when removing those sheetproviders and just having the one around navigation it has still the same problem

jonxssc avatar Feb 14 '23 13:02 jonxssc

I am experiencing the same issue.

A single global SheetProvider does not work as expected on iOS. I think the sheets are hidden below the navigation stack, somehow. It works if there is only one item in the stack (initial view).

Amazing library though!

maersk96 avatar Jun 07 '23 22:06 maersk96