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
This commit is contained in:
Peter Argany
2021-02-19 13:43:55 -08:00
committed by Facebook GitHub Bot
parent f0faa7843c
commit 441d630ed0
+2 -2
View File
@@ -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');