5up-okamura / react-native-draggable-gridview

MIT License
13 stars 13 forks source link

TypeScript error in index.ts #5

Closed ekasbohm closed 3 years ago

ekasbohm commented 3 years ago

On lines 458-461: Type { transform: { [key: string]: Animated.Value; }[]; opacity: Animated.Value; } is not assignable to type false | Value | RegisteredStyle<ViewStyle> | AnimatedInterpolation | WithAnimatedObject<ViewStyle> | WithAnimatedArray<...> | readonly (false | ... 3 more ... | WithAnimatedObject<...>)[]. The types returned by transform.pop() are incompatible between these types. Type { [key: string]: Value; } is not assignable to type WithAnimatedObject<PerpectiveTransform> | WithAnimatedObject<RotateTransform> | WithAnimatedObject<RotateXTransform> | ... 9 more ... | WithAnimatedObject<...>. Property matrix is missing in type { [key: string]: Value; } but required in type WithAnimatedObject<MatrixTransform>.

ekasbohm commented 3 years ago

Resolved by upgrading to @types/react-native@0.63.47