Skip to content

Commit

Permalink
Create feature flag for DOM trees in Fabric
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rubennorte authored and facebook-github-bot committed Mar 14, 2023
1 parent aee7d96 commit 01f2936
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Libraries/ReactNative/ReactNativeFeatureFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export type FeatureFlags = {|
* implementation
*/
isGlobalWebPerformanceLoggerEnabled: () => boolean,
/**
* Enables access to the host tree in Fabric using DOM-compatible APIs.
*/
enableAccessToHostTreeInFabric: () => boolean,
|};

const ReactNativeFeatureFlags: FeatureFlags = {
Expand All @@ -50,6 +54,7 @@ const ReactNativeFeatureFlags: FeatureFlags = {
animatedShouldDebounceQueueFlush: () => false,
animatedShouldUseSingleOp: () => false,
isGlobalWebPerformanceLoggerEnabled: () => false,
enableAccessToHostTreeInFabric: () => false,
};

module.exports = ReactNativeFeatureFlags;

0 comments on commit 01f2936

Please sign in to comment.