ReactFeatureFlags.native-fb.js — react Source File
Architecture documentation for ReactFeatureFlags.native-fb.js, a javascript file in the react codebase. 4 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 5412c5f0_89c4_9cd0_0941_ed146e3869aa["ReactFeatureFlags.native-fb.js"] 5412c5f0_89c4_9cd0_0941_ed146e3869aa["ReactFeatureFlags.native-fb.js"] 5412c5f0_89c4_9cd0_0941_ed146e3869aa --> 5412c5f0_89c4_9cd0_0941_ed146e3869aa 6b13aa4d_f1f1_f910_afb9_f984c765d84a["ReactFeatureFlags.native-fb-dynamic.js"] 5412c5f0_89c4_9cd0_0941_ed146e3869aa --> 6b13aa4d_f1f1_f910_afb9_f984c765d84a 8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"] 5412c5f0_89c4_9cd0_0941_ed146e3869aa --> 8344de1b_978c_be0f_eebd_38ccc4962a93 973f7f61_b8cd_772a_1e00_4bf4596f8686["ReactNativeInternalFeatureFlags"] 5412c5f0_89c4_9cd0_0941_ed146e3869aa --> 973f7f61_b8cd_772a_1e00_4bf4596f8686 5412c5f0_89c4_9cd0_0941_ed146e3869aa["ReactFeatureFlags.native-fb.js"] 5412c5f0_89c4_9cd0_0941_ed146e3869aa --> 5412c5f0_89c4_9cd0_0941_ed146e3869aa style 5412c5f0_89c4_9cd0_0941_ed146e3869aa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* 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
*/
import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags';
import typeof * as ExportsType from './ReactFeatureFlags.native-fb';
import typeof * as DynamicExportsType from './ReactFeatureFlags.native-fb-dynamic';
// Re-export dynamic flags from the internal module.
// Intentionally using * because this import is compiled to a `require` call.
import * as dynamicFlagsUntyped from 'ReactNativeInternalFeatureFlags';
const dynamicFlags: DynamicExportsType = (dynamicFlagsUntyped: any);
// We destructure each value before re-exporting to avoid a dynamic look-up on
// the exports object every time a flag is read.
export const {
alwaysThrottleRetries,
enableEffectEventMutationPhase,
enableHiddenSubtreeInsertionEffectCleanup,
enableObjectFiber,
enableEagerAlternateStateNodeCleanup,
passChildrenWhenCloningPersistedNodes,
enableFragmentRefs,
enableFragmentRefsScrollIntoView,
enableFragmentRefsInstanceHandles,
enableFragmentRefsTextNodes,
} = dynamicFlags;
// The rest of the flags are static for better dead code elimination.
export const disableClientCache: boolean = true;
export const disableCommentsAsDOMContainers: boolean = true;
export const disableInputAttributeSyncing: boolean = false;
export const disableLegacyContext: boolean = false;
export const disableLegacyContextForFunctionComponents: boolean = false;
export const disableLegacyMode: boolean = false;
export const disableSchedulerTimeoutInWorkLoop: boolean = false;
export const disableTextareaChildren: boolean = false;
export const enableAsyncDebugInfo: boolean = true;
export const enableAsyncIterableChildren: boolean = false;
export const enableCPUSuspense: boolean = true;
export const enableCreateEventHandleAPI: boolean = false;
export const enableMoveBefore: boolean = true;
export const enableFizzExternalRuntime: boolean = true;
export const enableInfiniteRenderLoopDetection: boolean = false;
export const enableLegacyCache: boolean = false;
export const enableLegacyFBSupport: boolean = false;
export const enableLegacyHidden: boolean = false;
export const enableNoCloningMemoCache: boolean = false;
export const enableProfilerCommitHooks: boolean = __PROFILE__;
export const enableProfilerNestedUpdatePhase: boolean = __PROFILE__;
export const enableProfilerTimer: boolean = __PROFILE__;
export const enableReactTestRendererWarning: boolean = false;
export const enableRetryLaneExpiration: boolean = false;
export const enableSchedulingProfiler: boolean = __PROFILE__;
export const enableScopeAPI: boolean = false;
export const enableSuspenseAvoidThisFallback: boolean = false;
export const enableSuspenseCallback: boolean = true;
export const enableTaint: boolean = true;
export const enableTransitionTracing: boolean = false;
export const enableTrustedTypesIntegration: boolean = false;
export const enableUpdaterTracking: boolean = __PROFILE__;
export const retryLaneExpirationMs = 5000;
export const syncLaneExpirationMs = 250;
export const transitionLaneExpirationMs = 5000;
export const enableYieldingBeforePassive: boolean = false;
export const enableThrottledScheduling: boolean = false;
export const enableViewTransition: boolean = false;
export const enableGestureTransition: boolean = false;
export const enableScrollEndPolyfill: boolean = true;
export const enableSuspenseyImages: boolean = false;
export const enableFizzBlockingRender: boolean = true;
export const enableSrcObject: boolean = false;
export const enableHydrationChangeEvent: boolean = true;
export const enableDefaultTransitionIndicator: boolean = true;
export const ownerStackLimit = 1e4;
export const enableComponentPerformanceTrack: boolean = true;
export const enablePerformanceIssueReporting: boolean =
enableComponentPerformanceTrack;
export const enableInternalInstanceMap: boolean = false;
export const enableOptimisticKey: boolean = false;
export const enableParallelTransitions: boolean = false;
// Flow magic to verify the exports of this file match the original version.
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
Domain
Dependencies
- ReactFeatureFlags
- ReactFeatureFlags.native-fb-dynamic.js
- ReactFeatureFlags.native-fb.js
- ReactNativeInternalFeatureFlags
Source
Frequently Asked Questions
What does ReactFeatureFlags.native-fb.js do?
ReactFeatureFlags.native-fb.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactFeatureFlags.native-fb.js depend on?
ReactFeatureFlags.native-fb.js imports 4 module(s): ReactFeatureFlags, ReactFeatureFlags.native-fb-dynamic.js, ReactFeatureFlags.native-fb.js, ReactNativeInternalFeatureFlags.
What files import ReactFeatureFlags.native-fb.js?
ReactFeatureFlags.native-fb.js is imported by 1 file(s): ReactFeatureFlags.native-fb.js.
Where is ReactFeatureFlags.native-fb.js in the architecture?
ReactFeatureFlags.native-fb.js is located at packages/shared/forks/ReactFeatureFlags.native-fb.js (domain: BabelCompiler, directory: packages/shared/forks).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free