Fix RCTPerfMonitor not showing up in scene based app
Summary:
Currently RCTPerfMonitor won't show up in scene based app, we should first try to extract the window from the connected scenes, and fallback to the window in UIApplicationDelegate.
Changelog:
[iOS] [Fixed] - Fix RCTPerfMonitor not showing up in scene based app
Test Plan:
- Tested RCTPerfMonitor in app not using scenes;
- Tested RCTPerfMonitor in app using scenes in iOS 13 & 14;
- Tested RCTPerfMonitor in app using scenes in iOS 15+.
This has been extracted as a helper in RCTKeyWindow already. Can you use that?
Wow thank you @javache , I just updated the PR :)
I don't know why CI is failed, can I rerun it?
@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@javache merged this pull request in facebook/react-native@16775215d5a734288da7147db348824395198407.
This pull request was successfully merged by abing in 16775215d5a734288da7147db348824395198407.
When will my fix make it into a release? | How to file a pick request?