-
Notifications
You must be signed in to change notification settings - Fork 78
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
Conversation
RCTInstance
RCTInstance
extraModulesForBridge
impl to RCTInstance
@@ -298,7 +298,8 @@ - (void)show | |||
|
|||
[self updateStats]; | |||
|
|||
[RCTKeyWindow() addSubview:self.container]; | |||
UIWindow *window = RCTSharedApplication().delegate.window; | |||
[window addSubview:self.container]; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, will do 👍
Summary:
To load our bridge modules we need the RCTInstance to call
extraModulesForBridge
on theRCTTurboModuleManagerDelegate
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.