React Native 中 scrollXAnimated 的 Typescript Typing 是什么?

What is the Typescript Typing for scrollXAnimated in React Native?

React Native 中 scrollXAnimated 的 Typescript Typing 是什么?我已经查看了文档,但没有看到任何相关信息。

TypeScript 类型:

// TypeScript Type: Props
interface Props {
  scrollXAnimated: any, // WHAT CAN I ADD INSTEAD OF ANY?
  data: any,
};

代码:

  const translateY = props.scrollXAnimated.interpolate({
    inputRange: [-1, 0, 1],
    outputRange: [HEADER_HEIGHT, 0, -HEADER_HEIGHT],
  });

界面

interface Props {
  scrollXAnimated: Animated.Value // if from . react native else Animated.Value<number> if from reanimated
  data: any,
};