pavelbabenko / react-native-awesome-gallery

Performant, native-like, and well-customizable gallery for React Native.
MIT License
494 stars 54 forks source link

Suggestion: set index with animation #46

Closed jb-5murf closed 1 year ago

jb-5murf commented 2 years ago

Hi, I like this library very much. One thing I'm missing is possibity to set index with animation. Something like in react-native-reanimated-carousel. It would be great to have such a feature.

lpatrun commented 1 year ago

@jb-5murf Change line 963 to translateX.value = withTiming(newIndex * -(dimensions.width + emptySpaceWidth)); and thats all

pavelbabenko commented 1 year ago

Released in v0.3.6