Moving detachViewDelegate to viewDidDisappearfixes swipe to dismiss but unfortunately it doesn't appear to get called consistently when leaving the share extension with continueInApp, openApp, or dismissExtension. This updates those methods to also detachViewDelegate fixing the subsequent crash on launch.
Fixes: https://github.com/Expensify/react-native-share-menu/issues/230
Moving
detachViewDelegate
toviewDidDisappear
fixes swipe to dismiss but unfortunately it doesn't appear to get called consistently when leaving the share extension withcontinueInApp
,openApp
, ordismissExtension
. This updates those methods to alsodetachViewDelegate
fixing the subsequent crash on launch.