mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This PR migrates from the deprecated way of retrieving the status bar info. It introduces a helper method `RCTUIStatusBarManager` which gets the `UIStatusBarManager` from the KeyWindow. It also removes the unused `getHeight` method. ## Changelog: [IOS] [ADDED] - Add `RCTUIStatusBarManager` and properly retrieve StatusBar style and height [IOS] [REMOVED] - Remove unused getHeight method from StatusBar Pull Request resolved: https://github.com/facebook/react-native/pull/42241 Test Plan: CI Green, Ensure that preferredStatusBarStyle and preferredStatusBarHidden is properly retrieved for Modals Reviewed By: philIip Differential Revision: D52729974 Pulled By: cipolleschi fbshipit-source-id: 40adef810c1d419900fb7ba706af6fb095941e10