You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not valid because Animated values are stateful, and so they should be kept in state or a ref. Otherwise, any state update to the component will interrupt the current animation and/or gesture.
I'm filing this for future readers or whoever has a fork of this code in their codebase.
It is not correct to re-create Animated.Value on every render like this:
react-native-image-viewing/src/hooks/usePanResponder.ts
Lines 66 to 67 in 8a91a9c
react-native-image-viewing/src/hooks/useAnimatedComponents.ts
Lines 18 to 19 in 8a91a9c
react-native-image-viewing/src/components/ImageItem/ImageItem.ios.tsx
Lines 62 to 64 in 8a91a9c
This is not valid because Animated values are stateful, and so they should be kept in state or a ref. Otherwise, any state update to the component will interrupt the current animation and/or gesture.
I'm filing this for future readers or whoever has a fork of this code in their codebase.
A potential fix would look like this: bluesky-social/social-app#1618
The text was updated successfully, but these errors were encountered: