Skip to content

Commit

Permalink
Rename "Debug Menu" title to "Dev Menu" on iOS (#36981)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #36981

We are (following a quick internal RFC) looking to standardise the term "[in-app] [Developer|Debug] menu" to "Dev Menu" in the React Native Debugging docs (and all docs references). (Indeed, the prevalent existing use in docs was already "Developer menu".) This PR aligns naming in the `RCTDevMenu` component on iOS.

See also facebook/react-native-website#3692.

Changelog:
[iOS][Changed] - Rename "Debug Menu" title to "Dev Menu"

Reviewed By: christophpurrer

Differential Revision: D44872456

fbshipit-source-id: c222bb2c551a4f434a1dc0efbb8d4f75c785aa11
  • Loading branch information
huntie authored and facebook-github-bot committed Apr 20, 2023
1 parent dec8562 commit 6971540
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-native/React/CoreModules/RCTDevMenu.mm
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ - (void)setDefaultJSBundle
? UIAlertControllerStyleActionSheet
: UIAlertControllerStyleAlert;

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

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

NSArray<RCTDevMenuItem *> *items = [self _menuItemsToPresent];
for (RCTDevMenuItem *item in items) {
Expand Down

0 comments on commit 6971540

Please sign in to comment.