mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
33c16689a8
Summary: Changelog: [Internal] # Problem `RCTModalHostViewComponentView` reuses the same UIViewController between recycles. This can be a problem if dismissal of the modal is animated as the UIViewController is still presented while it is being dismissed. That's when "Application tried to present modally an active controller" exception can happen. # Solution Deallocate UIViewController when `RCTModalHostViewComponentView` is recycled. Reviewed By: PeteTheHeat Differential Revision: D23345711 fbshipit-source-id: da540571184afcb88b52758c4a1f0b4ec5874eb1