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

Add extraModulesForBridge impl to RCTInstance #35

Merged
merged 2 commits into from
Sep 29, 2024

Conversation

alanjhughes
Copy link

@alanjhughes alanjhughes commented Sep 27, 2024

Summary:

To load our bridge modules we need the RCTInstance to call extraModulesForBridge on the RCTTurboModuleManagerDelegate which will be our app delegate. Also, I needed to revert facebook#43476 as it was causing the performance monitor to be added to the dev menus window instead of the app.

@alanjhughes alanjhughes requested review from Kudo and tsapeta September 27, 2024 13:51
@alanjhughes alanjhughes changed the title Add extraModulesForBridge impl to instance Add extraModulesForBridge impl to RCTInstance Sep 27, 2024
@alanjhughes alanjhughes changed the title Add extraModulesForBridge impl to RCTInstance Add extraModulesForBridge impl to RCTInstance Sep 27, 2024
@@ -298,7 +298,8 @@ - (void)show

[self updateStats];

[RCTKeyWindow() addSubview:self.container];
UIWindow *window = RCTSharedApplication().delegate.window;
[window addSubview:self.container];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add comment and have a separate commit for this change. that would help react-native-lab upgrade in the future. e.g. in case the extraModulesForBridge: change is upstreamed, we can keep this RCTSharedApplication() change without manually split commits while upgrade.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, will do 👍

@alanjhughes alanjhughes merged commit 5b62a66 into sdk-52 Sep 29, 2024
32 of 48 checks passed
@alanjhughes alanjhughes deleted the @alanhughes/expo-go-new-arch-changes branch September 29, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants