Skip to content

Commit

Permalink
Change bridgeless check in dev menu (#43976)
Browse files Browse the repository at this point in the history
Summary:
We would set the value of  _bridge ivar to bridgeProxy for turbo module in bridgeless mode in #43757 , so we need to change the way of bridgeless/bridge check.

## Changelog:

[IOS] [FIXED] - Change bridgeless check in dev menu

Pull Request resolved: #43976

Test Plan: Dev menu shows bridgeless/bridge mode correctly.

Reviewed By: christophpurrer

Differential Revision: D56056640

Pulled By: cipolleschi

fbshipit-source-id: 1358c3027c1d5f12c70dd4486cc1d5975c7a185a
  • Loading branch information
zhongwuzw authored and facebook-github-bot committed Apr 12, 2024
1 parent 214a1e0 commit 776f900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/React/CoreModules/RCTDevMenu.mm
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ - (void)setDefaultJSBundle
? UIAlertControllerStyleActionSheet
: UIAlertControllerStyleAlert;

NSString *devMenuType = self.bridge ? @"Bridge" : @"Bridgeless";
NSString *devMenuType = [self.bridge isKindOfClass:RCTBridge.class] ? @"Bridge" : @"Bridgeless";
NSString *devMenuTitle = [NSString stringWithFormat:@"React Native Dev Menu (%@)", devMenuType];

_actionSheet = [UIAlertController alertControllerWithTitle:devMenuTitle message:description preferredStyle:style];
Expand Down

0 comments on commit 776f900

Please sign in to comment.