From 024d25794a51c94c877c1dfa115a82ebbf559614 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Mon, 1 Sep 2025 02:57:25 -0700 Subject: [PATCH] Expose Animated.CompositeAnimation type (#53538) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53538 Resolves https://github.com/react-native-community/discussions-and-proposals/discussions/893#discussioncomment-14190598. Changelog: [General][Added] - `Animated.CompositeAnomation` is now exposed when using `"react-native-strict-api"` Reviewed By: rshest Differential Revision: D81380950 fbshipit-source-id: f90f175cfd6f34c6a9564a8e340156103887d710 --- .../react-native/Libraries/Animated/AnimatedExports.js.flow | 1 + packages/react-native/ReactNativeApi.d.ts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/Animated/AnimatedExports.js.flow b/packages/react-native/Libraries/Animated/AnimatedExports.js.flow index 38d71fd1c44..cacd8c2248a 100644 --- a/packages/react-native/Libraries/Animated/AnimatedExports.js.flow +++ b/packages/react-native/Libraries/Animated/AnimatedExports.js.flow @@ -10,6 +10,7 @@ import AnimatedImplementation from './AnimatedImplementation'; +export type {CompositeAnimation} from './AnimatedImplementation'; export type {DecayAnimationConfig} from './animations/DecayAnimation'; export type {SpringAnimationConfig} from './animations/SpringAnimation'; export type {TimingAnimationConfig} from './animations/TimingAnimation'; diff --git a/packages/react-native/ReactNativeApi.d.ts b/packages/react-native/ReactNativeApi.d.ts index 8e91ff08b21..51c48dadd3d 100644 --- a/packages/react-native/ReactNativeApi.d.ts +++ b/packages/react-native/ReactNativeApi.d.ts @@ -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<> * * This file was generated by scripts/js-api/build-types/index.js. */ @@ -1347,6 +1347,7 @@ declare type AndroidSwitchNativeProps = Readonly< > declare namespace Animated { export { + CompositeAnimation, DecayAnimationConfig, SpringAnimationConfig, TimingAnimationConfig, @@ -5966,7 +5967,7 @@ export { AlertOptions, // a0cdac0f AlertType, // 5ab91217 AndroidKeyboardEvent, // e03becc8 - Animated, // 6b0cea93 + Animated, // 6ad7a14c AppConfig, // ebddad4b AppRegistry, // 6cdee1d6 AppState, // f7097b1b