A framework for building native applications using React
fix(iOS): allow to interactively swipe down the modal (#51483)
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
O
Oskar Kwaśniewski committed
28986a7599952a77b8b8e433f72ca837afde310e
Parent: ce75271
Committed by Facebook GitHub Bot <[email protected]>
on 6/18/2025, 2:18:40 PM