From f21d7c68fedb455aa7c2702cc9cf8dc74a1b09fe Mon Sep 17 00:00:00 2001 From: Sanchitv3 Date: Fri, 10 Jan 2025 15:06:12 +0530 Subject: [PATCH 1/2] chore: ts-ignore for useAnimatedStyle --- packages/unstyled/image-viewer/src/ImageViewerContent.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/unstyled/image-viewer/src/ImageViewerContent.tsx b/packages/unstyled/image-viewer/src/ImageViewerContent.tsx index 3d44dbe0e..99e92886a 100644 --- a/packages/unstyled/image-viewer/src/ImageViewerContent.tsx +++ b/packages/unstyled/image-viewer/src/ImageViewerContent.tsx @@ -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) { From 9fde423a9b58115d0a39f91f5880e580a335d95d Mon Sep 17 00:00:00 2001 From: Sanchitv3 Date: Fri, 10 Jan 2025 15:12:43 +0530 Subject: [PATCH 2/2] chore: ts-ignore for useAnimatedStyle --- packages/unstyled/image-viewer/src/ImageViewerContent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/unstyled/image-viewer/src/ImageViewerContent.tsx b/packages/unstyled/image-viewer/src/ImageViewerContent.tsx index 99e92886a..2b07e06a8 100644 --- a/packages/unstyled/image-viewer/src/ImageViewerContent.tsx +++ b/packages/unstyled/image-viewer/src/ImageViewerContent.tsx @@ -147,7 +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 + // 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);