Skip to content

Commit be8aa76

Browse files
authored
Enable flag disableModulePatternComponents for native-fb (#27807)
#27742 will remove this feature flag altogether, this just already removes the dynamic flag for the Meta React Native build ahead of time.
1 parent 9cae442 commit be8aa76

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import typeof * as DynamicFlagsType from 'ReactNativeInternalFeatureFlags';
2121
// update the test configuration.
2222

2323
export const alwaysThrottleRetries = __VARIANT__;
24-
export const disableModulePatternComponents = __VARIANT__;
2524
export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
2625
export const enableUnifiedSyncLane = __VARIANT__;
2726
export const enableUseRefAccessWarning = __VARIANT__;

packages/shared/forks/ReactFeatureFlags.native-fb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import * as dynamicFlags from 'ReactNativeInternalFeatureFlags';
1919
// the exports object every time a flag is read.
2020
export const {
2121
alwaysThrottleRetries,
22-
disableModulePatternComponents,
2322
enableDeferRootSchedulingToMicrotask,
2423
enableUnifiedSyncLane,
2524
enableUseRefAccessWarning,
@@ -28,6 +27,7 @@ export const {
2827
} = dynamicFlags;
2928

3029
// The rest of the flags are static for better dead code elimination.
30+
export const disableModulePatternComponents = true;
3131
export const enableDebugTracing = false;
3232
export const enableSchedulingProfiler = __PROFILE__;
3333
export const enableProfilerTimer = __PROFILE__;

scripts/flow/xplat.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
declare module 'ReactNativeInternalFeatureFlags' {
1111
declare export var alwaysThrottleRetries: boolean;
12-
declare export var disableModulePatternComponents: boolean;
1312
declare export var enableDeferRootSchedulingToMicrotask: boolean;
1413
declare export var enableUnifiedSyncLane: boolean;
1514
declare export var enableUseRefAccessWarning: boolean;

0 commit comments

Comments
 (0)