diff --git a/packages/react-native/React/Base/RCTDefines.h b/packages/react-native/React/Base/RCTDefines.h index 2332681c7216..0f3793bec299 100644 --- a/packages/react-native/React/Base/RCTDefines.h +++ b/packages/react-native/React/Base/RCTDefines.h @@ -48,12 +48,16 @@ /** * RCT_REMOTE_PROFILE: RCT_PROFILE + RCT_ENABLE_INSPECTOR + enable the - * connectivity functionality to control the profiler remotely, such as via Chrome DevTools or - * Flipper. + * connectivity functionality to control the profiler remotely, such as via Chrome DevTools. + * If Fusebox is enabled for release builds, enable the remote profile mode, fall back to RCT_DEV by default. */ #ifndef RCT_REMOTE_PROFILE +#ifdef REACT_NATIVE_ENABLE_FUSEBOX_RELEASE +#define RCT_REMOTE_PROFILE REACT_NATIVE_ENABLE_FUSEBOX_RELEASE +#else #define RCT_REMOTE_PROFILE RCT_DEV #endif +#endif /** * Enable the code to support making calls to the underlying sampling profiler mechanism.