Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RCTPerfMonitor not showing up in scene based app #43476

Closed
wants to merge 2 commits into from

Conversation

ouabing
Copy link

@ouabing ouabing commented Mar 14, 2024

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+.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Mar 14, 2024
@javache
Copy link
Member

javache commented Mar 14, 2024

This has been extracted as a helper in RCTKeyWindow already. Can you use that?

@ouabing
Copy link
Author

ouabing commented Mar 15, 2024

Wow thank you @javache , I just updated the PR :)

@ouabing
Copy link
Author

ouabing commented May 6, 2024

I don't know why CI is failed, can I rerun it?

@facebook-github-bot
Copy link
Contributor

@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 16, 2024
@facebook-github-bot
Copy link
Contributor

@javache merged this pull request in 1677521.

Copy link

This pull request was successfully merged by abing in 1677521.

When will my fix make it into a release? | How to file a pick request?

kosmydel pushed a commit to kosmydel/react-native that referenced this pull request Jun 11, 2024
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:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[iOS] [Fixed] - Fix RCTPerfMonitor not showing up in scene based app

Pull Request resolved: facebook#43476

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+.

Reviewed By: rshest

Differential Revision: D57381551

Pulled By: javache

fbshipit-source-id: fd6cce20c9a4ed41d7aae84751fc0c83391d0865
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants