[V4] Support DidAttemptToDismiss for pageSheet modals
Hi, since 4.0.3 there is possibility to set swipeToDismiss under modal options. This is really nice addition, but also implementing DidAttemptToDismiss with a callback would be a great addition to this functionality.
I tried myself to implement this but I am not so good at objective C. But this might helped, in RNNModalManager.m there should be implementation of - (void)presentationControllerDidAttemptToDismiss:(UIPresentationController *)presentationController with getting calling callback passed to options -> modal -> onDismissAttempt or some other property name.
Hi @manicantic,
Sounds like a great feature request! Will tag @yogevbd and @guyca so they can hopefully add it to the backlog.
Hi @ItsNoHax ,
I've just created PR with AttemptedToDismiss event. You can check it out here : https://github.com/wix/react-native-navigation/pull/5832
Solid work @manicantic! :muscle:
I've passed the PR on and it should hopefully be looked at in the next couple days!