mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Set prefersFuseboxFrontend capability flag in jsinspector-modern targets (#43689)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43689 Context: https://github.com/facebookexperimental/rn-chrome-devtools-frontend/pull/34. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D55474521 fbshipit-source-id: 9756fe29adcbdda686af24c1a65073720cba4b53
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8ceb4a2a3e
commit
d855974dae
@@ -436,7 +436,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init)
|
||||
.integrationName = "iOS Bridge (RCTBridge)",
|
||||
});
|
||||
},
|
||||
{.nativePageReloads = true});
|
||||
{.nativePageReloads = true, .prefersFuseboxFrontend = true});
|
||||
}
|
||||
|
||||
Class bridgeClass = self.bridgeClass;
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ ReactInstanceManagerInspectorTarget::ReactInstanceManagerInspectorTarget(
|
||||
"Android Bridge (ReactInstanceManagerInspectorTarget)",
|
||||
});
|
||||
},
|
||||
{.nativePageReloads = true});
|
||||
{.nativePageReloads = true, .prefersFuseboxFrontend = true});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ JReactHostInspectorTarget::JReactHostInspectorTarget(
|
||||
// Reject the connection.
|
||||
return nullptr;
|
||||
},
|
||||
{.nativePageReloads = true});
|
||||
{.nativePageReloads = true, .prefersFuseboxFrontend = true});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,8 @@ const folly::dynamic targetCapabilitiesToDynamic(
|
||||
const InspectorTargetCapabilities& capabilities) {
|
||||
return folly::dynamic::object(
|
||||
"nativePageReloads", capabilities.nativePageReloads)(
|
||||
"nativeSourceCodeFetching", capabilities.nativeSourceCodeFetching);
|
||||
"nativeSourceCodeFetching", capabilities.nativeSourceCodeFetching)(
|
||||
"prefersFuseboxFrontend", capabilities.prefersFuseboxFrontend);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -34,8 +34,9 @@ class IDestructible {
|
||||
};
|
||||
|
||||
struct InspectorTargetCapabilities {
|
||||
const bool nativePageReloads = false;
|
||||
const bool nativeSourceCodeFetching = false;
|
||||
bool nativePageReloads = false;
|
||||
bool nativeSourceCodeFetching = false;
|
||||
bool prefersFuseboxFrontend = false;
|
||||
};
|
||||
|
||||
const folly::dynamic targetCapabilitiesToDynamic(
|
||||
|
||||
@@ -191,7 +191,7 @@ class RCTHostHostTargetDelegate : public facebook::react::jsinspector_modern::Ho
|
||||
.integrationName = "iOS Bridgeless (RCTHost)",
|
||||
});
|
||||
},
|
||||
{.nativePageReloads = true});
|
||||
{.nativePageReloads = true, .prefersFuseboxFrontend = true});
|
||||
}
|
||||
if (_instance) {
|
||||
RCTLogWarn(
|
||||
|
||||
Reference in New Issue
Block a user