mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate all feature flags to pragmas (#48098)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48098 Changelog: [internal] TSIA. No more manual feature flag overrides in Fantom tests :D Reviewed By: sammy-SC Differential Revision: D66760120 fbshipit-source-id: a0493d6ca57f4fdad33a0667e3af99ed0f0b66ca
This commit is contained in:
committed by
Facebook GitHub Bot
parent
be9b076087
commit
7a81fd7a8a
+1
@@ -7,6 +7,7 @@
|
||||
* @flow strict-local
|
||||
* @format
|
||||
* @oncall react_native
|
||||
* @fantom_flags enableAccessToHostTreeInFabric:false
|
||||
*/
|
||||
|
||||
import setUpReactFabricPublicInstanceFantomTests from './setUpReactFabricPublicInstanceFantomTests';
|
||||
|
||||
+1
-1
@@ -7,9 +7,9 @@
|
||||
* @flow strict-local
|
||||
* @format
|
||||
* @oncall react_native
|
||||
* @fantom_flags enableAccessToHostTreeInFabric:true
|
||||
*/
|
||||
|
||||
import './setUpFeatureFlags';
|
||||
import setUpReactFabricPublicInstanceFantomTests from './setUpReactFabricPublicInstanceFantomTests';
|
||||
|
||||
setUpReactFabricPublicInstanceFantomTests({isModern: true});
|
||||
|
||||
packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/__tests__/setUpFeatureFlags.js
Vendored
-16
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict-local
|
||||
* @format
|
||||
* @oncall react_native
|
||||
*/
|
||||
|
||||
import * as ReactNativeFeatureFlags from '../../../../src/private/featureflags/ReactNativeFeatureFlags';
|
||||
|
||||
ReactNativeFeatureFlags.override({
|
||||
enableAccessToHostTreeInFabric: () => true,
|
||||
});
|
||||
+1
-1
@@ -7,6 +7,7 @@
|
||||
* @flow strict-local
|
||||
* @format
|
||||
* @oncall react_native
|
||||
* @fantom_flags enableAccessToHostTreeInFabric:true
|
||||
*/
|
||||
|
||||
/* eslint-disable lint/sort-imports */
|
||||
@@ -19,7 +20,6 @@ import ReactNativeElement from '../../dom/nodes/ReactNativeElement';
|
||||
import IntersectionObserverEntry from '../IntersectionObserverEntry';
|
||||
import * as React from 'react';
|
||||
|
||||
import './setUpFeatureFlags';
|
||||
import '../../../../../Libraries/Core/InitializeCore.js';
|
||||
|
||||
import ScrollView from '../../../../../Libraries/Components/ScrollView/ScrollView';
|
||||
|
||||
Vendored
-16
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict-local
|
||||
* @format
|
||||
* @oncall react_native
|
||||
*/
|
||||
|
||||
import * as ReactNativeFeatureFlags from '../../../featureflags/ReactNativeFeatureFlags';
|
||||
|
||||
ReactNativeFeatureFlags.override({
|
||||
enableAccessToHostTreeInFabric: () => true,
|
||||
});
|
||||
Vendored
+1
-1
@@ -7,6 +7,7 @@
|
||||
* @flow strict-local
|
||||
* @format
|
||||
* @oncall react_native
|
||||
* @fantom_flags enableAccessToHostTreeInFabric:true
|
||||
*/
|
||||
|
||||
import type MutationObserverType from '../MutationObserver';
|
||||
@@ -18,7 +19,6 @@ import ReactNativeElement from '../../dom/nodes/ReactNativeElement';
|
||||
import nullthrows from 'nullthrows';
|
||||
import * as React from 'react';
|
||||
|
||||
import './setUpFeatureFlags';
|
||||
import '../../../../../Libraries/Core/InitializeCore.js';
|
||||
|
||||
declare const MutationObserver: Class<MutationObserverType>;
|
||||
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict-local
|
||||
* @format
|
||||
* @oncall react_native
|
||||
*/
|
||||
|
||||
import * as ReactNativeFeatureFlags from '../../../featureflags/ReactNativeFeatureFlags';
|
||||
|
||||
ReactNativeFeatureFlags.override({
|
||||
enableAccessToHostTreeInFabric: () => true,
|
||||
});
|
||||
Reference in New Issue
Block a user