Skip to content

Commit

Permalink
Merge pull request #2699 from gluestack/fix/ImageViewer-AnimatedStyle-ts
Browse files Browse the repository at this point in the history
chore: ts-ignore for useAnimatedStyle
  • Loading branch information
gluestackadmin authored Jan 10, 2025
2 parents be63453 + 9fde423 commit 9a12f6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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,9 @@ 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 9a12f6d

Please sign in to comment.