mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Enable Network Inspection flags by default (#55015)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55015 Follows rollout in 0.83 (https://github.com/facebook/react-native/pull/54516). We've now done the internal alignment work to enable this flag on `main`. Changelog: [Internal] Reviewed By: vzaidman Differential Revision: D89659682 fbshipit-source-id: 865c209ed501f9e08d0a99ef7729d511e3f64670
This commit is contained in:
1 parent
8084fe62ed
commit
e73ab78672
4 files changed
+11
-11
No files matched your search
+3
-3
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<bb85527f5c9affa81a1ea33f2873a957>>
|
||||
* @generated SignedSource<<3525ab6194d3057e779e1050f19c93e4>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -105,7 +105,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
|
||||
|
||||
override fun enableNativeCSSParsing(): Boolean = false
|
||||
|
||||
override fun enableNetworkEventReporting(): Boolean = false
|
||||
override fun enableNetworkEventReporting(): Boolean = true
|
||||
|
||||
override fun enablePreparedTextLayout(): Boolean = false
|
||||
|
||||
@@ -143,7 +143,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
|
||||
|
||||
override fun fuseboxEnabledRelease(): Boolean = false
|
||||
|
||||
override fun fuseboxNetworkInspectionEnabled(): Boolean = false
|
||||
override fun fuseboxNetworkInspectionEnabled(): Boolean = true
|
||||
|
||||
override fun hideOffscreenVirtualViewsOnIOS(): Boolean = false
|
||||
|
||||
|
||||
+3
-3
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<33cacaaeb6994f78f5a2d9379618e2a0>>
|
||||
* @generated SignedSource<<7df208d8e3cda2df044e6303bb359ba9>>
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -192,7 +192,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
||||
}
|
||||
|
||||
bool enableNetworkEventReporting() override {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool enablePreparedTextLayout() override {
|
||||
@@ -268,7 +268,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
||||
}
|
||||
|
||||
bool fuseboxNetworkInspectionEnabled() override {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool hideOffscreenVirtualViewsOnIOS() override {
|
||||
|
||||
@@ -487,7 +487,7 @@ const definitions: FeatureFlagDefinitions = {
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
enableNetworkEventReporting: {
|
||||
defaultValue: false,
|
||||
defaultValue: true,
|
||||
metadata: {
|
||||
description:
|
||||
'Enable network event reporting hooks in each native platform through `NetworkReporter` (Web Perf APIs + CDP). This flag should be combined with `fuseboxNetworkInspectionEnabled` to enable Network CDP debugging.',
|
||||
@@ -690,7 +690,7 @@ const definitions: FeatureFlagDefinitions = {
|
||||
ossReleaseStage: 'none',
|
||||
},
|
||||
fuseboxNetworkInspectionEnabled: {
|
||||
defaultValue: false,
|
||||
defaultValue: true,
|
||||
metadata: {
|
||||
dateAdded: '2024-01-31',
|
||||
description:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @generated SignedSource<<6b37c02e334fb00f22ce27bb787104cc>>
|
||||
* @generated SignedSource<<9ffc43524e0aa410a7f161dfe9f315a5>>
|
||||
* @flow strict
|
||||
* @noformat
|
||||
*/
|
||||
@@ -394,7 +394,7 @@ export const enableNativeCSSParsing: Getter<boolean> = createNativeFlagGetter('e
|
||||
/**
|
||||
* Enable network event reporting hooks in each native platform through `NetworkReporter` (Web Perf APIs + CDP). This flag should be combined with `fuseboxNetworkInspectionEnabled` to enable Network CDP debugging.
|
||||
*/
|
||||
export const enableNetworkEventReporting: Getter<boolean> = createNativeFlagGetter('enableNetworkEventReporting', false);
|
||||
export const enableNetworkEventReporting: Getter<boolean> = createNativeFlagGetter('enableNetworkEventReporting', true);
|
||||
/**
|
||||
* Enables caching text layout artifacts for later reuse
|
||||
*/
|
||||
@@ -470,7 +470,7 @@ export const fuseboxEnabledRelease: Getter<boolean> = createNativeFlagGetter('fu
|
||||
/**
|
||||
* Enable network inspection support in the React Native DevTools CDP backend. Requires `enableBridgelessArchitecture`. This flag is global and should not be changed across React Host lifetimes.
|
||||
*/
|
||||
export const fuseboxNetworkInspectionEnabled: Getter<boolean> = createNativeFlagGetter('fuseboxNetworkInspectionEnabled', false);
|
||||
export const fuseboxNetworkInspectionEnabled: Getter<boolean> = createNativeFlagGetter('fuseboxNetworkInspectionEnabled', true);
|
||||
/**
|
||||
* Hides offscreen VirtualViews on iOS by setting hidden = YES to avoid extra cost of views
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user