mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54179 iOS 26 changed how the `popoverPresentationController.sourceView`and the `popoverPresentationController.sourceRect` are handled by iOS. Before iOS 26, those two properties were ignored by iPhones but used by iPads. After iOS 26, those two properties are used by both iPhones and iPads. This introduced an issue where users presenting an action sheet were actually able to interact with the back button on iPhone even ehwn they were not supposed to. This change adds a condition over the idiom used (iPhone/iPad) to make sure that we use the anchors only with the iPad idions as it used to be before. ## Changelog: [iOS][Fixed] - Revert action sheet behavior not to break apps on iOS 26 Reviewed By: RSNara Differential Revision: D84842625 fbshipit-source-id: 347dfc21ee478abd02ba26078cb27d05e9cb64c5