mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This PR fixes swipe dismissal to work each time the modal is shown. Previously modalInPresentation was set on the view controller which gets destroyed every time user dismisses the modal. This makes sure that modal in presentation is correctly preserved when showing multiple modals. https://github.com/user-attachments/assets/c7f140e5-1c4f-4809-8453-148d4becc9eb ## Changelog: [IOS] [FIXED] - modal swipe dismissal works only for the first time Pull Request resolved: https://github.com/facebook/react-native/pull/53499 Test Plan: 1. Open RN Tester 2. Check allow swipe dismissal 3. Check closing it multiple times Reviewed By: javache Differential Revision: D81312918 Pulled By: cipolleschi fbshipit-source-id: 4f7cc60762660e5d5310f4973fe8df340c1ba52b