From b9a1f72e33c1e65a7132e247078f881623bf14fc Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 20 May 2024 23:24:10 +0100 Subject: [PATCH] Enable `disableStringRefs` and `enableRefAsProp` for React Native (Meta) --- packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js | 2 -- packages/shared/forks/ReactFeatureFlags.native-fb.js | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js b/packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js index 83ac39f888138..bb8b523e6d3bb 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js +++ b/packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js @@ -20,10 +20,8 @@ export const alwaysThrottleRetries = __VARIANT__; export const consoleManagedByDevToolsDuringStrictMode = __VARIANT__; export const disableDefaultPropsExceptForClasses = __VARIANT__; -export const disableStringRefs = __VARIANT__; export const enableAddPropertiesFastPath = __VARIANT__; export const enableDeferRootSchedulingToMicrotask = __VARIANT__; export const enableFastJSX = __VARIANT__; export const enableInfiniteRenderLoopDetection = __VARIANT__; -export const enableRefAsProp = __VARIANT__; export const passChildrenWhenCloningPersistedNodes = __VARIANT__; diff --git a/packages/shared/forks/ReactFeatureFlags.native-fb.js b/packages/shared/forks/ReactFeatureFlags.native-fb.js index af766b08fa2a1..7ea580bd70c5a 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-fb.js +++ b/packages/shared/forks/ReactFeatureFlags.native-fb.js @@ -22,12 +22,10 @@ export const { alwaysThrottleRetries, consoleManagedByDevToolsDuringStrictMode, disableDefaultPropsExceptForClasses, - disableStringRefs, enableAddPropertiesFastPath, enableDeferRootSchedulingToMicrotask, enableFastJSX, enableInfiniteRenderLoopDetection, - enableRefAsProp, passChildrenWhenCloningPersistedNodes, } = dynamicFlags; @@ -95,6 +93,9 @@ export const disableClientCache = true; export const enableServerComponentLogs = true; +export const enableRefAsProp = true; +export const disableStringRefs = true; + export const enableReactTestRendererWarning = false; export const disableLegacyMode = false; export const disableDOMTestUtils = false;