From 441d630ed0819da2c19c2110e6576f55f5fe16a3 Mon Sep 17 00:00:00 2001 From: Peter Argany Date: Fri, 19 Feb 2021 13:43:55 -0800 Subject: [PATCH] Enable dev tools setup in bridgeless mode Summary: Changelog: [Internal] I'm trying to get Fast refresh working in bridgeless mode. I need the ` require('./setUpReactRefresh');` line to be executed to do so. I'm not sure why this was commented out in the first place, it seems to be working fine in FBiOS/FB4A. Reviewed By: p-sun Differential Revision: D26289573 fbshipit-source-id: 6151f781c31e3aadaebfeb759d3eb776e8b525cc --- Libraries/Core/setUpDeveloperTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/setUpDeveloperTools.js b/Libraries/Core/setUpDeveloperTools.js index 9dc22072290..e7786f37433 100644 --- a/Libraries/Core/setUpDeveloperTools.js +++ b/Libraries/Core/setUpDeveloperTools.js @@ -17,8 +17,8 @@ declare var console: typeof console & {_isPolyfilled: boolean, ...}; * You can use this module directly, or just require InitializeCore. */ if (__DEV__) { - // TODO (T45803484) Enable devtools for bridgeless RN - if (!global.RN$Bridgeless) { + // TODO (T45803484) Enable devtools for bridgeless RN Android. + if (!global.RN$Bridgeless || Platform.OS === 'ios') { if (!global.__RCTProfileIsProfiling) { require('./setUpReactDevTools');