Skip to content

Conversation

@mcoeur
Copy link

@mcoeur mcoeur commented Oct 6, 2025

I needed to adjust the duration of the transition that occurs when an image snaps to the side of the screen.
My approach was to set those options with props (with a fallback to default options).

Example use :

<Gallery
  data={assets}
  renderItem={renderItem}
  snapTransitionConfig={{ duration: 180, easing: Easing.ease }}
/>

I adjusted the documentation accordingly.

Any thoughts ?

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

Successfully merging this pull request may close these issues.

1 participant