mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
28986a7599
Summary: This PR allows to interactively close the modal using the swipe down gesture. It fixes 5 year old issue: https://github.com/facebook/react-native/issues/29319 In short it removes `modalInPresentation` which according to the documentation causes: "UIKit ignores events outside the view controller’s bounds and **prevents the interactive dismissal of the view controller while it is onscreen.**". It also adds another delegate event to call onRequestClose whenever modal is closed by gesture. https://github.com/user-attachments/assets/8849ecba-f762-47ec-a28b-b41c1991a882 ## Changelog: [IOS] [ADDED] - Allow to interactively swipe down the modal. Add allowSwipeDismissal prop. Pull Request resolved: https://github.com/facebook/react-native/pull/51483 Test Plan: Test if swiping down the modal calls onRequestClose Reviewed By: rshest Differential Revision: D75125438 Pulled By: javache fbshipit-source-id: d4f2c8b59447680f405b725d0809573a937f97cf