mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
f0faa7843c
commit
441d630ed0
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user