Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buggy swiping behavior with react-native-reanimated >= 3.9.0 #75

Closed
andrijanovakovic opened this issue May 15, 2024 · 3 comments
Closed

Comments

@andrijanovakovic
Copy link

Environment

  • react-native-awesome-gallery: 0.3.9
  • react-native: 0.74.1
  • expo: 51
  • react-native-reanimated: 3.9.0 or higher

Description

There seems to be an issue with swiping images, which becomes buggy when using react-native-reanimated version 3.9.0 or higher. When using react-native-reanimated 3.8.1 or older (tried with 3.6.2 also) swiping is smooth.

When swiping images, the image seems to come almost to the end of screen (~80% of the swipe) and then for a moment it jumps back and forth a bit, before positioning to the end of screen (end of swipe). It's hard to explain so please look at the attached videos below.

Steps to Reproduce

  1. Set up an Expo project with the latest version of react-native-awesome-gallery.
  2. Ensure that react-native-reanimated is updated to version 3.9.0 or higher.
  3. Implement a basic gallery view with multiple images to swipe through.
  4. Observe the swiping behavior.

Expected Behavior

Swiping between images should be smooth and seamless.

Actual Behavior

Swiping is buggy and does not provide a smooth experience.

Additional Information

No warnings or error messages are displayed. I am using Expo SDK 51 & expo-router 3.5 which requires reanimated library version >= 3.10 so downgrading to an older reanimated version is not an option.
I have also tried this in versions 3.11.0 which is also buggy and 3.8.1 which is not buggy.

Videos

[email protected] (example of smooth swiping)

3.6.2.mp4

[email protected] (example of jittery/buggy swiping)

3.10.1.mp4
@jacobmolby
Copy link

I don't think this lib has anything to do with it. From version 3.7 reanimated has become slow. We're stuck at 3.6 for the time being.

I already created an issue in their repo software-mansion/react-native-reanimated#5816

@pavelbabenko
Copy link
Owner

@andrijanovakovic @jacobmolby
Could you try with reanimated v3.14 and reopen the issue if it still exists?

@jacobmolby
Copy link

I haven't tried directly with this lib, but the same issues occur in the new version as well software-mansion/react-native-reanimated#5816 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants