Skip to content

Commit

Permalink
Fix dev menu not open
Browse files Browse the repository at this point in the history
Summary:
Bridgeless dev menu couldn't open due to self.bridge being null here.

Changelog:
[Android][Changed] - Fix dev menu not open for Bridgeless

Reviewed By: cortinico

Differential Revision: D51746610

fbshipit-source-id: 2e9bab686c965271bbfad264ff22ff61e28849c3
  • Loading branch information
Lulu Wu authored and facebook-github-bot committed Dec 11, 2023
1 parent 547643e commit e4887a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/React/CoreModules/RCTDevSettings.mm
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ - (void)initialize
#if RCT_DEV_MENU
devMenuToken = [[RCTPackagerConnection sharedPackagerConnection]
addNotificationHandler:^(id params) {
[self.bridge.devMenu show];
[[self.moduleRegistry moduleForName:"DevMenu"] show];
}
queue:dispatch_get_main_queue()
forMethod:@"devMenu"];
Expand Down

0 comments on commit e4887a5

Please sign in to comment.