diff --git a/packages/react-native/Libraries/Animated/AnimatedMock.js b/packages/react-native/Libraries/Animated/AnimatedMock.js index c509c830f7d075..5613f27358a99e 100644 --- a/packages/react-native/Libraries/Animated/AnimatedMock.js +++ b/packages/react-native/Libraries/Animated/AnimatedMock.js @@ -192,4 +192,4 @@ export default { forkEvent: AnimatedImplementation.forkEvent, unforkEvent: AnimatedImplementation.unforkEvent, Event: AnimatedEvent, -}; +} as typeof AnimatedImplementation; 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 32b72e85d0ba5d..bb20d0df09d3c4 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 @@ -269,68 +269,8 @@ exports[`public API should not change unintentionally Libraries/Animated/Animate _isUsingNativeDriver: () => boolean, ... }; -declare const spring: ( - value: AnimatedValue | AnimatedValueXY | AnimatedColor, - config: SpringAnimationConfig -) => CompositeAnimation; -declare const timing: ( - value: AnimatedValue | AnimatedValueXY | AnimatedColor, - config: TimingAnimationConfig -) => CompositeAnimation; -declare const decay: ( - value: AnimatedValue | AnimatedValueXY | AnimatedColor, - config: DecayAnimationConfig -) => CompositeAnimation; -declare const sequence: ( - animations: Array -) => CompositeAnimation; -type ParallelConfig = { stopTogether?: boolean, ... }; -declare const parallel: ( - animations: Array, - config?: ?ParallelConfig -) => CompositeAnimation; -declare const delay: (time: number) => CompositeAnimation; -declare const stagger: ( - time: number, - animations: Array -) => CompositeAnimation; -type LoopAnimationConfig = { - iterations: number, - resetBeforeIteration?: boolean, - ... -}; -declare const loop: ( - animation: CompositeAnimation, - LoopAnimationConfig -) => CompositeAnimation; export type { AnimatedNumeric as Numeric }; -declare export default { - Value: AnimatedValue, - ValueXY: AnimatedValueXY, - Color: AnimatedColor, - Interpolation: AnimatedInterpolation, - Node: AnimatedNode, - decay: decay, - timing: timing, - spring: spring, - add: $FlowFixMe, - subtract: $FlowFixMe, - divide: $FlowFixMe, - multiply: $FlowFixMe, - modulo: $FlowFixMe, - diffClamp: $FlowFixMe, - delay: delay, - sequence: sequence, - parallel: parallel, - stagger: stagger, - loop: loop, - event: $FlowFixMe, - createAnimatedComponent: createAnimatedComponent, - attachNativeEvent: attachNativeEvent, - forkEvent: $FlowFixMe, - unforkEvent: $FlowFixMe, - Event: AnimatedEvent, -}; +declare export default typeof AnimatedImplementation; " `;