From b01a5f91fedc19495e8a9d6ce079feb5898e7b87 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Tue, 24 Jun 2025 08:55:21 -0700 Subject: [PATCH] Expose Animated.InterpolationConfig type (#52224) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52224 Changelog: [General][Added] - `InterpolationConfig` is now exposed on the `Animated` namespace Differential Revision: D77222031 fbshipit-source-id: c64c2f348bc899c598ee86c637300037a5a8de6f --- packages/react-native/Libraries/Animated/AnimatedExports.js.flow | 1 + .../Libraries/__tests__/__snapshots__/public-api-test.js.snap | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/react-native/Libraries/Animated/AnimatedExports.js.flow b/packages/react-native/Libraries/Animated/AnimatedExports.js.flow index 5200416f87e..fdbc88b2b84 100644 --- a/packages/react-native/Libraries/Animated/AnimatedExports.js.flow +++ b/packages/react-native/Libraries/Animated/AnimatedExports.js.flow @@ -33,6 +33,7 @@ export type {default as AnimatedNode} from './nodes/AnimatedNode'; export type {default as AnimatedAddition} from './nodes/AnimatedAddition'; export type {default as AnimatedDiffClamp} from './nodes/AnimatedDiffClamp'; export type {default as AnimatedDivision} from './nodes/AnimatedDivision'; +export type {InterpolationConfigType as InterpolationConfig} from './nodes/AnimatedInterpolation'; export type {default as AnimatedModulo} from './nodes/AnimatedModulo'; export type {default as AnimatedMultiplication} from './nodes/AnimatedMultiplication'; export type {default as AnimatedSubtraction} from './nodes/AnimatedSubtraction'; diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index db7c2719f01..5838744c42e 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -185,6 +185,7 @@ export type { default as AnimatedNode } from \\"./nodes/AnimatedNode\\"; export type { default as AnimatedAddition } from \\"./nodes/AnimatedAddition\\"; export type { default as AnimatedDiffClamp } from \\"./nodes/AnimatedDiffClamp\\"; export type { default as AnimatedDivision } from \\"./nodes/AnimatedDivision\\"; +export type { InterpolationConfigType as InterpolationConfig } from \\"./nodes/AnimatedInterpolation\\"; export type { default as AnimatedModulo } from \\"./nodes/AnimatedModulo\\"; export type { default as AnimatedMultiplication } from \\"./nodes/AnimatedMultiplication\\"; export type { default as AnimatedSubtraction } from \\"./nodes/AnimatedSubtraction\\";