diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java index 79977623cde704..e0f831b7a87ee8 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java @@ -14,6 +14,7 @@ import com.facebook.debug.holder.PrinterHolder; import com.facebook.debug.tags.ReactDebugOverlayTags; import com.facebook.infer.annotation.Assertions; +import com.facebook.react.R; import com.facebook.react.bridge.CatalystInstance; import com.facebook.react.bridge.JSBundleLoader; import com.facebook.react.bridge.JavaJSExecutor; @@ -100,7 +101,7 @@ public BridgeDevSupportManager( } addCustomDevOption( - mIsSamplingProfilerEnabled ? "Disable Sampling Profiler" : "Enable Sampling Profiler", + applicationContext.getString(R.string.catalyst_sample_profiler_toggle), new DevOptionHandler() { @Override public void onOptionSelected() { diff --git a/packages/react-native/ReactAndroid/src/main/res/devsupport/values/strings.xml b/packages/react-native/ReactAndroid/src/main/res/devsupport/values/strings.xml index d562be6d686f5f..bc89201b956550 100644 --- a/packages/react-native/ReactAndroid/src/main/res/devsupport/values/strings.xml +++ b/packages/react-native/ReactAndroid/src/main/res/devsupport/values/strings.xml @@ -22,8 +22,7 @@ Copy\n Report Loading from %1$s… - Disable Sampling Profiler - Enable Sampling Profiler + Toggle Sampling Profiler React Native Dev Menu (%1$s) Running %1$s