2017-11-21 06:05:53 +08:00
|
|
|
/**
|
2022-10-18 23:19:24 +08:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2017-11-21 06:05:53 +08:00
|
|
|
*
|
|
|
|
|
* 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';
|
2020-02-14 04:33:53 +08:00
|
|
|
import typeof * as ExportsType from './ReactFeatureFlags.native-fb';
|
2017-11-21 06:05:53 +08:00
|
|
|
|
2022-04-29 03:05:41 +08:00
|
|
|
// NOTE: There are no flags, currently. Uncomment the stuff below if we add one.
|
2021-08-04 10:30:20 +08:00
|
|
|
// Re-export dynamic flags from the internal module. Intentionally using *
|
|
|
|
|
// because this import is compiled to a `require` call.
|
2022-10-14 22:11:42 +08:00
|
|
|
import * as dynamicFlags from 'ReactNativeInternalFeatureFlags';
|
2021-08-04 10:30:20 +08:00
|
|
|
|
|
|
|
|
// We destructure each value before re-exporting to avoid a dynamic look-up on
|
|
|
|
|
// the exports object every time a flag is read.
|
2022-10-14 22:11:42 +08:00
|
|
|
export const {enableUseRefAccessWarning} = dynamicFlags;
|
2021-08-04 10:30:20 +08:00
|
|
|
|
2017-11-21 06:05:53 +08:00
|
|
|
// The rest of the flags are static for better dead code elimination.
|
2020-04-16 10:10:15 +08:00
|
|
|
export const enableDebugTracing = false;
|
2021-10-15 20:03:18 +08:00
|
|
|
export const enableSchedulingProfiler = __PROFILE__;
|
2018-06-27 04:28:41 +08:00
|
|
|
export const enableProfilerTimer = __PROFILE__;
|
2021-05-26 05:32:14 +08:00
|
|
|
export const enableProfilerCommitHooks = __PROFILE__;
|
|
|
|
|
export const enableProfilerNestedUpdatePhase = __PROFILE__;
|
2020-11-12 22:31:27 +08:00
|
|
|
export const enableProfilerNestedUpdateScheduledHook = false;
|
2021-05-26 05:41:19 +08:00
|
|
|
export const enableUpdaterTracking = __PROFILE__;
|
2020-12-03 11:44:56 +08:00
|
|
|
export const enableCache = false;
|
2022-10-24 11:20:52 +08:00
|
|
|
export const enableLegacyCache = false;
|
2022-03-21 11:41:02 +08:00
|
|
|
export const enableCacheElement = true;
|
2022-10-20 06:37:00 +08:00
|
|
|
export const enableFetchInstrumentation = false;
|
2018-12-07 05:57:23 +08:00
|
|
|
export const enableSchedulerDebugging = false;
|
2018-12-14 05:20:23 +08:00
|
|
|
export const debugRenderPhaseSideEffectsForStrictMode = true;
|
2019-03-12 07:39:49 +08:00
|
|
|
export const disableJavaScriptURLs = false;
|
2022-02-18 05:44:22 +08:00
|
|
|
export const disableCommentsAsDOMContainers = true;
|
2018-12-14 05:20:23 +08:00
|
|
|
export const disableInputAttributeSyncing = false;
|
|
|
|
|
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
|
|
|
|
|
export const warnAboutDeprecatedLifecycles = true;
|
2019-08-29 19:06:51 +08:00
|
|
|
export const enableScopeAPI = false;
|
2020-05-13 02:01:12 +08:00
|
|
|
export const enableCreateEventHandleAPI = false;
|
2019-07-24 08:13:46 +08:00
|
|
|
export const enableSuspenseCallback = false;
|
2022-11-18 01:22:23 +08:00
|
|
|
export const warnAboutDefaultPropsOnFunctionComponents = true;
|
2022-11-17 08:15:57 +08:00
|
|
|
export const warnAboutStringRefs = true;
|
2019-08-02 08:21:32 +08:00
|
|
|
export const disableLegacyContext = false;
|
2019-08-03 08:52:32 +08:00
|
|
|
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
|
2019-09-16 20:43:22 +08:00
|
|
|
export const enableTrustedTypesIntegration = false;
|
2020-01-20 23:12:30 +08:00
|
|
|
export const disableTextareaChildren = false;
|
2020-03-07 02:46:32 +08:00
|
|
|
export const disableModulePatternComponents = false;
|
2022-11-17 07:57:50 +08:00
|
|
|
export const warnAboutSpreadingKeyToJSX = true;
|
2021-09-21 03:44:48 +08:00
|
|
|
export const enableSuspenseAvoidThisFallback = false;
|
2022-02-02 07:22:04 +08:00
|
|
|
export const enableSuspenseAvoidThisFallbackFizz = false;
|
2022-03-08 14:33:52 +08:00
|
|
|
export const enableCPUSuspense = true;
|
2022-10-24 11:20:52 +08:00
|
|
|
export const enableUseHook = true;
|
2022-10-17 22:40:59 +08:00
|
|
|
export const enableUseMemoCacheHook = true;
|
2022-09-15 02:39:06 +08:00
|
|
|
export const enableUseEventHook = false;
|
2022-04-20 05:34:30 +08:00
|
|
|
export const enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = true;
|
2022-06-16 23:38:37 +08:00
|
|
|
export const enableClientRenderFallbackOnTextMismatch = true;
|
2020-04-07 06:43:39 +08:00
|
|
|
export const enableComponentStackLocations = false;
|
2020-03-19 21:22:36 +08:00
|
|
|
export const enableLegacyFBSupport = false;
|
2020-07-31 22:01:27 +08:00
|
|
|
export const enableFilterEmptyStringAttributesDOM = false;
|
2020-12-02 23:25:55 +08:00
|
|
|
export const disableNativeComponentFrames = false;
|
2022-03-01 00:14:30 +08:00
|
|
|
export const skipUnmountedBoundaries = false;
|
2021-06-15 03:10:24 +08:00
|
|
|
export const deletedTreeCleanUpLevel = 3;
|
2021-07-26 21:56:59 +08:00
|
|
|
export const enableGetInspectorDataForInstanceInProduction = true;
|
2021-06-03 02:28:06 +08:00
|
|
|
export const deferRenderPhaseUpdateToNextBatch = false;
|
2020-03-13 02:38:32 +08:00
|
|
|
|
2021-02-25 05:14:14 +08:00
|
|
|
export const createRootStrictEffectsByDefault = false;
|
2020-09-25 04:42:17 +08:00
|
|
|
|
2020-12-18 06:17:23 +08:00
|
|
|
export const disableSchedulerTimeoutInWorkLoop = false;
|
2021-02-26 06:42:11 +08:00
|
|
|
export const enableLazyContextPropagation = false;
|
2022-03-10 00:48:03 +08:00
|
|
|
export const enableLegacyHidden = true;
|
2021-05-25 23:21:58 +08:00
|
|
|
export const enableSyncDefaultUpdates = true;
|
2021-05-11 22:12:46 +08:00
|
|
|
export const allowConcurrentByDefault = true;
|
2021-12-08 23:11:42 +08:00
|
|
|
export const enableCustomElementPropertySupport = false;
|
2020-10-28 03:02:19 +08:00
|
|
|
|
2021-09-02 02:56:52 +08:00
|
|
|
export const consoleManagedByDevToolsDuringStrictMode = false;
|
2022-10-24 11:20:52 +08:00
|
|
|
export const enableServerContext = true;
|
2022-03-08 20:55:32 +08:00
|
|
|
|
2021-11-13 05:54:59 +08:00
|
|
|
export const enableUseMutableSource = true;
|
2021-09-02 02:56:52 +08:00
|
|
|
|
2022-01-11 04:32:40 +08:00
|
|
|
export const enableTransitionTracing = false;
|
|
|
|
|
|
2022-10-24 11:20:52 +08:00
|
|
|
export const enableFloat = true;
|
|
|
|
|
export const enableHostSingletons = true;
|
2022-10-01 00:06:11 +08:00
|
|
|
|
|
|
|
|
export const useModernStrictMode = false;
|
2022-10-18 05:57:59 +08:00
|
|
|
export const enableFizzExternalRuntime = false;
|
2022-10-05 01:25:17 +08:00
|
|
|
|
2017-11-21 06:05:53 +08:00
|
|
|
// Flow magic to verify the exports of this file match the original version.
|
2022-10-05 01:25:17 +08:00
|
|
|
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|