@@ -12,47 +12,6 @@ import typeof * as ExportsType from './ReactFeatureFlags.native-oss';
12
12
13
13
// TODO: Align these flags with canary and delete this file once RN ships from Canary.
14
14
15
- // -----------------------------------------------------------------------------
16
- // TODO for next React Native major.
17
- //
18
- // Alias __TODO_NEXT_RN_MAJOR__ to false for easier skimming.
19
- // -----------------------------------------------------------------------------
20
- const __TODO_NEXT_RN_MAJOR__ = false ;
21
- export const consoleManagedByDevToolsDuringStrictMode = __TODO_NEXT_RN_MAJOR__ ;
22
- export const disableStringRefs = __TODO_NEXT_RN_MAJOR__ ;
23
- export const enableAsyncActions = __TODO_NEXT_RN_MAJOR__ ;
24
- export const enableComponentStackLocations = __TODO_NEXT_RN_MAJOR__ ;
25
- export const enableDeferRootSchedulingToMicrotask = __TODO_NEXT_RN_MAJOR__ ;
26
- export const enableFastJSX = __TODO_NEXT_RN_MAJOR__ ;
27
- export const enableInfiniteRenderLoopDetection = __TODO_NEXT_RN_MAJOR__ ;
28
- export const enableRefAsProp = __TODO_NEXT_RN_MAJOR__ ;
29
- export const enableUseDeferredValueInitialArg = __TODO_NEXT_RN_MAJOR__ ;
30
- export const useModernStrictMode = __TODO_NEXT_RN_MAJOR__ ;
31
-
32
- // -----------------------------------------------------------------------------
33
- // These are ready to flip after the next React npm release (or RN switches to
34
- // Canary, but can't flip before then because of react/renderer mismatches.
35
- // -----------------------------------------------------------------------------
36
- export const disableDefaultPropsExceptForClasses = __TODO_NEXT_RN_MAJOR__ ;
37
- export const enableCache = __TODO_NEXT_RN_MAJOR__ ;
38
- export const enableRenderableContext = __TODO_NEXT_RN_MAJOR__ ;
39
-
40
- // -----------------------------------------------------------------------------
41
- // Already enabled for next React Native major.
42
- // Hardcode these to true after the next RN major.
43
- //
44
- // Alias __NEXT_RN_MAJOR__ to true for easier skimming.
45
- // -----------------------------------------------------------------------------
46
- const __NEXT_RN_MAJOR__ = true ;
47
- export const disableClientCache = __NEXT_RN_MAJOR__ ;
48
- export const disableLegacyContext = __NEXT_RN_MAJOR__ ;
49
- export const enableBinaryFlight = true ;
50
- export const enableFizzExternalRuntime = __NEXT_RN_MAJOR__ ; // DOM-only
51
- export const enableFlightReadableStream = true ;
52
- export const enableServerComponentLogs = __NEXT_RN_MAJOR__ ;
53
- export const enableTaint = __NEXT_RN_MAJOR__ ;
54
- export const enableUnifiedSyncLane = __NEXT_RN_MAJOR__ ;
55
-
56
15
// DEV-only but enabled in the next RN Major.
57
16
// Not supported by flag script to avoid the special case.
58
17
export const debugRenderPhaseSideEffectsForStrictMode = __DEV__ ;
@@ -62,21 +21,35 @@ export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
62
21
// -----------------------------------------------------------------------------
63
22
export const allowConcurrentByDefault = false ;
64
23
export const alwaysThrottleRetries = false ;
24
+ export const consoleManagedByDevToolsDuringStrictMode = true ;
25
+ export const disableClientCache = true ;
65
26
export const disableCommentsAsDOMContainers = true ;
27
+ export const disableDefaultPropsExceptForClasses = true ;
66
28
export const disableIEWorkarounds = true ;
67
29
export const disableInputAttributeSyncing = false ;
30
+ export const disableLegacyContext = true ;
68
31
export const disableLegacyMode = false ;
69
32
export const disableSchedulerTimeoutInWorkLoop = false ;
33
+ export const disableStringRefs = true ;
70
34
export const disableTextareaChildren = false ;
71
35
export const enableAddPropertiesFastPath = false ;
36
+ export const enableAsyncActions = true ;
72
37
export const enableAsyncDebugInfo = false ;
73
38
export const enableAsyncIterableChildren = false ;
39
+ export const enableBinaryFlight = true ;
40
+ export const enableCache = true ;
41
+ export const enableComponentStackLocations = true ;
74
42
export const enableCPUSuspense = false ;
75
43
export const enableCreateEventHandleAPI = false ;
76
44
export const enableDebugTracing = false ;
45
+ export const enableDeferRootSchedulingToMicrotask = true ;
77
46
export const enableDO_NOT_USE_disableStrictPassiveEffect = false ;
47
+ export const enableFastJSX = true ;
78
48
export const enableFilterEmptyStringAttributesDOM = true ;
49
+ export const enableFizzExternalRuntime = true ;
50
+ export const enableFlightReadableStream = true ;
79
51
export const enableGetInspectorDataForInstanceInProduction = false ;
52
+ export const enableInfiniteRenderLoopDetection = true ;
80
53
export const enableLazyContextPropagation = false ;
81
54
export const enableLegacyCache = false ;
82
55
export const enableLegacyFBSupport = false ;
@@ -85,15 +58,21 @@ export const enableNoCloningMemoCache = false;
85
58
export const enableOwnerStacks = __EXPERIMENTAL__ ;
86
59
export const enablePostpone = false ;
87
60
export const enableReactTestRendererWarning = false ;
61
+ export const enableRefAsProp = true ;
62
+ export const enableRenderableContext = true ;
88
63
export const enableRetryLaneExpiration = false ;
89
64
export const enableSchedulingProfiler = __PROFILE__ ;
90
65
export const enableScopeAPI = false ;
66
+ export const enableServerComponentLogs = true ;
91
67
export const enableShallowPropDiffing = false ;
92
68
export const enableSuspenseAvoidThisFallback = false ;
93
69
export const enableSuspenseAvoidThisFallbackFizz = false ;
94
70
export const enableSuspenseCallback = false ;
71
+ export const enableTaint = true ;
95
72
export const enableTransitionTracing = false ;
96
73
export const enableTrustedTypesIntegration = false ;
74
+ export const enableUnifiedSyncLane = true ;
75
+ export const enableUseDeferredValueInitialArg = true ;
97
76
export const enableUseEffectEventHook = false ;
98
77
export const enableUseMemoCacheHook = true ;
99
78
export const favorSafetyOverHydrationPerf = true ;
@@ -103,6 +82,7 @@ export const renameElementSymbol = true;
103
82
export const retryLaneExpirationMs = 5000 ;
104
83
export const syncLaneExpirationMs = 250 ;
105
84
export const transitionLaneExpirationMs = 5000 ;
85
+ export const useModernStrictMode = true ;
106
86
107
87
// Profiling Only
108
88
export const enableProfilerTimer = __PROFILE__ ;
0 commit comments