Export Animated.Numeric type in public API (#57309)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57309

`Numeric` is defined and exported by `AnimatedImplementation` and re-exported as a named export from `Animated`, but it was missing from the `Animated` namespace object assembled in `AnimatedExports`.

We have usages of this in fbsource, therefore export on the public API for parity.

Changelog:
[General][Added] - **Strict TypeScript API**: Export `Animated.Numeric`

Differential Revision: D109430487

fbshipit-source-id: 3202271cefceb21c6e687b7ecd87c97d8846fb6e
This commit is contained in:
Alex Hunt authored and meta-codesync[bot] committed 2026-06-23 06:45:46 -07:00
1 parent fa8fad84d6
commit 6206b0b01f
2 files changed
+13 -3

No files matched your search

@@ -10,7 +10,7 @@
import AnimatedImplementation from './AnimatedImplementation';
export type {CompositeAnimation} from './AnimatedImplementation';
export type {CompositeAnimation, Numeric} from './AnimatedImplementation';
export type {DecayAnimationConfig} from './animations/DecayAnimation';
export type {SpringAnimationConfig} from './animations/SpringAnimation';
export type {TimingAnimationConfig} from './animations/TimingAnimation';
+12 -2
View File
@@ -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<<b039d3ad12debfc2af81bc7dc85fb584>>
* @generated SignedSource<<42200de8ca10d30541e23b67547d9a13>>
*
* This file was generated by scripts/js-api/build-types/index.js.
*/
@@ -1275,6 +1275,7 @@ declare type AndroidProps = {
declare namespace Animated {
export {
CompositeAnimation,
AnimatedNumeric as Numeric,
DecayAnimationConfig,
SpringAnimationConfig,
TimingAnimationConfig,
@@ -1431,6 +1432,15 @@ declare class AnimatedNode_default {
declare type AnimatedNodeConfig = {
readonly debugID?: string
}
declare type AnimatedNumeric =
| AnimatedAddition_default
| AnimatedDiffClamp_default
| AnimatedDivision_default
| AnimatedInterpolation_default<number>
| AnimatedModulo_default
| AnimatedMultiplication_default
| AnimatedSubtraction_default
| AnimatedValue_default
declare type AnimatedProps<Props extends {}> = LooseOmit<
{
[K in keyof Props]: K extends NonAnimatedProps
@@ -5910,7 +5920,7 @@ export {
AlertOptions, // a0cdac0f
AlertType, // 5ab91217
AndroidKeyboardEvent, // e03becc8
Animated, // a81c717c
Animated, // 1ac00401
AppConfig, // 35c0ca70
AppRegistry, // 7ef8e53a
AppState, // 12012be5