diff --git a/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js b/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js index 2248bae913f5cb..eeef99ff35e039 100644 --- a/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js +++ b/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js @@ -627,13 +627,12 @@ const definitions: FeatureFlagDefinitions = { }, }, useInsertionEffectsForAnimations: { - defaultValue: false, + defaultValue: true, metadata: { - dateAdded: '2024-09-12', description: 'Changes construction of the animation graph to `useInsertionEffect` instead of `useLayoutEffect`.', expectedReleaseValue: true, - purpose: 'experimentation', + purpose: 'release', }, }, useRefsForTextInputState: { diff --git a/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js b/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js index b97da614d309b6..cc60ebbcd6528b 100644 --- a/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js +++ b/packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated SignedSource<> + * @generated SignedSource<> * @flow strict */ @@ -177,7 +177,7 @@ export const shouldUseSetNativePropsInFabric: Getter = createJavaScript /** * Changes construction of the animation graph to `useInsertionEffect` instead of `useLayoutEffect`. */ -export const useInsertionEffectsForAnimations: Getter = createJavaScriptFlagGetter('useInsertionEffectsForAnimations', false); +export const useInsertionEffectsForAnimations: Getter = createJavaScriptFlagGetter('useInsertionEffectsForAnimations', true); /** * Enable a variant of TextInput that moves some state to refs to avoid unnecessary re-renders