Skip to content

Commit 01f2936

Browse files
rubennortefacebook-github-bot
authored andcommitted
Create feature flag for DOM trees in Fabric
Summary: This adds a feature flag to enable all the new DOM traversal and layout APIs (in react-native-community/discussions-and-proposals#607). Changelog: [Internal] Reviewed By: rshest Differential Revision: D43981608 fbshipit-source-id: 77bb1ee4faaaf30cfc8bb2e493763b168702f498
1 parent aee7d96 commit 01f2936

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: Libraries/ReactNative/ReactNativeFeatureFlags.js

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export type FeatureFlags = {|
4141
* implementation
4242
*/
4343
isGlobalWebPerformanceLoggerEnabled: () => boolean,
44+
/**
45+
* Enables access to the host tree in Fabric using DOM-compatible APIs.
46+
*/
47+
enableAccessToHostTreeInFabric: () => boolean,
4448
|};
4549

4650
const ReactNativeFeatureFlags: FeatureFlags = {
@@ -50,6 +54,7 @@ const ReactNativeFeatureFlags: FeatureFlags = {
5054
animatedShouldDebounceQueueFlush: () => false,
5155
animatedShouldUseSingleOp: () => false,
5256
isGlobalWebPerformanceLoggerEnabled: () => false,
57+
enableAccessToHostTreeInFabric: () => false,
5358
};
5459

5560
module.exports = ReactNativeFeatureFlags;

0 commit comments

Comments
 (0)