Skip to content

Commit

Permalink
chore: ts-ignore for useAnimatedStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanchitv3 committed Jan 10, 2025
1 parent be63453 commit f21d7c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/unstyled/image-viewer/src/ImageViewerContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ const ImageViewerContent = (
Gesture.Simultaneous(pinchGesture, panGesture)
);

//This type error is coming from reanimated and react native types itself https://github.com/software-mansion/react-native-reanimated/issues/4548
// @ts-ignore
const animatedStyle = useAnimatedStyle(() => {
runOnJS(setScale)(scale.value);
if (scale.value <= 1) {
Expand Down

0 comments on commit f21d7c6

Please sign in to comment.