Skip to content

Commit da8ea85

Browse files
huntiefacebook-github-bot
authored andcommitted
Set prefersFuseboxFrontend capability flag in jsinspector-modern targets (facebook#43689)
Summary: Context: facebook/react-native-devtools-frontend#34. Changelog: [Internal] Differential Revision: D55474521
1 parent 220a0bd commit da8ea85

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

packages/react-native/React/Base/RCTBridge.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ - (void)setUp
436436
.integrationName = "iOS Bridge (RCTBridge)",
437437
});
438438
},
439-
{.nativePageReloads = true});
439+
{.nativePageReloads = true, .prefersFuseboxFrontend = true});
440440
}
441441

442442
Class bridgeClass = self.bridgeClass;

packages/react-native/ReactAndroid/src/main/jni/react/jni/ReactInstanceManagerInspectorTarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ReactInstanceManagerInspectorTarget::ReactInstanceManagerInspectorTarget(
5050
"Android Bridge (ReactInstanceManagerInspectorTarget)",
5151
});
5252
},
53-
{.nativePageReloads = true});
53+
{.nativePageReloads = true, .prefersFuseboxFrontend = true});
5454
}
5555
}
5656

packages/react-native/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ JReactHostInspectorTarget::JReactHostInspectorTarget(
4545
// Reject the connection.
4646
return nullptr;
4747
},
48-
{.nativePageReloads = true});
48+
{.nativePageReloads = true, .prefersFuseboxFrontend = true});
4949
}
5050
}
5151

packages/react-native/ReactCommon/jsinspector-modern/InspectorInterfaces.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const folly::dynamic targetCapabilitiesToDynamic(
2828
const InspectorTargetCapabilities& capabilities) {
2929
return folly::dynamic::object(
3030
"nativePageReloads", capabilities.nativePageReloads)(
31-
"nativeSourceCodeFetching", capabilities.nativeSourceCodeFetching);
31+
"nativeSourceCodeFetching", capabilities.nativeSourceCodeFetching)(
32+
"prefersFuseboxFrontend", capabilities.prefersFuseboxFrontend);
3233
}
3334

3435
namespace {

packages/react-native/ReactCommon/jsinspector-modern/InspectorInterfaces.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class IDestructible {
3636
struct InspectorTargetCapabilities {
3737
const bool nativePageReloads = false;
3838
const bool nativeSourceCodeFetching = false;
39+
const bool prefersFuseboxFrontend = false;
3940
};
4041

4142
const folly::dynamic targetCapabilitiesToDynamic(

packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ - (void)start
191191
.integrationName = "iOS Bridgeless (RCTHost)",
192192
});
193193
},
194-
{.nativePageReloads = true});
194+
{.nativePageReloads = true, .prefersFuseboxFrontend = true});
195195
}
196196
if (_instance) {
197197
RCTLogWarn(

0 commit comments

Comments
 (0)