Luehang / react-native-smart-gallery

An easy and simple to use React Native component to render a large to very large list of swipable high performant pages with intelligent guestures responder to cushion rough guestures and detect gestures like pan, pinch and double tap. Supporting both iOS and Android. Free and made possible along with costly maintenance and updates by [Lue Hang](https://www.facebook.com/lue.hang) (the author).
https://www.luehangs.site/lue_hang/projects/react-native-smart-gallery
MIT License
34 stars 9 forks source link

[BUG] Prevent scale less than the image dimensions #19

Open ghost opened 4 years ago

ghost commented 4 years ago

To Do First

Software Package Version: 1.2.1

Describe the bug The images shouldn't move up and down or shouldnt be scaled to the smallest dimension possible. It should stay intact and should only be zoomed from initial dimensions. Please check facebook's app implementation for the reference.

Screenshots photo_2020-04-01_05-11-33

Version (please complete the following information):

Additional context Here is the code snippet

<SmartGallery
    images={images}
    onPageSelected={index => this.setState({ index })}
    index={index}
    loadMinimalLoader={<ActivityIndicator color="#fff" />}
/>
ghost commented 4 years ago

@Luehang please check