react-native-actions-sheet
react-native-actions-sheet copied to clipboard
[Only in iOS] Navigating to new screen leads to a frozen screen
Note: This issue occurs only in iOS. In android it works fine.
If I navigate to a new screen immediately after calling actionSheetRef.current?.hide()
the new screen is frozen.
If I navigate after a timeout more than 500ms, the new screen works fine.
I'm using the latest master version, since 0.8.4 wasn't showing the action-sheet in iOS.
Video for reference:
https://user-images.githubusercontent.com/4579093/188850577-c55b2f61-cfdd-4997-b9cb-aa30464cc3b0.mov
@ammarahm-ed Were you able to check this out? I can work on a PR if you can point me in the right direction.
You forgot to await the hide
function, that might fix your error.
@focux The hide
function exposed by the ref
is not async. The one exposed by the SheetManager
is async. Using await is not helping here. The problem still persists.
@shobhitsinghal624 I would recommend moving to the sheet manager pattern to register sheets under a provider. It's much nicer and you won't have any async/await ref issues