mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 00:20:31 +00:00
Change the Debug Menu string from Debug/Stop JS Remotely to Debug/Stop Remote JS
Summary: Changed debug menu string as requested in: https://github.com/facebook/react-native/pull/5683 by ide and matthewwithanm  Closes https://github.com/facebook/react-native/pull/7334 Differential Revision: D3256730 fb-gh-sync-id: 0265d684ef2e216956a0d0a1bdb5295c58126853 fbshipit-source-id: 0265d684ef2e216956a0d0a1bdb5295c58126853
This commit is contained in:
parent
24fe8b7e92
commit
785cc07589
@ -456,7 +456,8 @@ RCT_EXPORT_MODULE()
|
||||
}]];
|
||||
} else {
|
||||
BOOL isDebuggingJS = _executorClass && _executorClass == jsDebuggingExecutorClass;
|
||||
NSString *debugTitleJS = isDebuggingJS ? [NSString stringWithFormat:@"Disable %@ Debugging", _webSocketExecutorName] : [NSString stringWithFormat:@"Debug %@", _webSocketExecutorName];
|
||||
NSString *debuggingDescription = [_defaults objectForKey:@"websocket-executor-name"] ?: @"Remote JS";
|
||||
NSString *debugTitleJS = isDebuggingJS ? [NSString stringWithFormat:@"Disable %@ Debugging", debuggingDescription] : [NSString stringWithFormat:@"Debug %@", _webSocketExecutorName];
|
||||
[items addObject:[RCTDevMenuItem buttonItemWithTitle:debugTitleJS handler:^{
|
||||
weakSelf.executorClass = isDebuggingJS ? Nil : jsDebuggingExecutorClass;
|
||||
}]];
|
||||
|
@ -2,7 +2,7 @@
|
||||
<resources>
|
||||
<string name="catalyst_reloadjs" project="catalyst" translatable="false">Reload JS</string>
|
||||
<string name="catalyst_debugjs" project="catalyst" translatable="false">Debug JS Remotely</string>
|
||||
<string name="catalyst_debugjs_off" project="catalyst" translatable="false">Stop JS Remotely Debugging</string>
|
||||
<string name="catalyst_debugjs_off" project="catalyst" translatable="false">Stop Remote JS Debugging</string>
|
||||
<string name="catalyst_hot_module_replacement" project="catalyst" translatable="false">Enable Hot Reloading</string>
|
||||
<string name="catalyst_hot_module_replacement_off" project="catalyst" translatable="false">Disable Hot Reloading</string>
|
||||
<string name="catalyst_live_reload" project="catalyst" translatable="false">Enable Live Reload</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user