Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Multiple Sheet Presentation in React Native (#46316)
Summary: Pull Request resolved: #46316 This pull request introduces enhancements to the view controller presentation logic in React Native, allowing for multiple sheets to be presented on top of each other. The current implementation restricts the presentation to a single view at a time, which limits the flexibility needed in complex applications. The proposed changes modify the presentation behavior to always utilize the top-most view controller for presentations. This adjustment ensures that multiple sheets can be managed more effectively, without disrupting the existing application flow. Key changes include: Modification of the presentation logic to reference the top-most view controller. Utilization of a recursive method to determine the top-most controller. The changes have been thoroughly tested with both old and new interfaces and have shown to work seamlessly across different scenarios Changelog: [Internal] Allow multiple sheets to be presented on top of each other Reviewed By: cipolleschi Differential Revision: D62143463 fbshipit-source-id: 53667cf1a75e4514156780574bf604aee6b3fefc
- Loading branch information