ascoders / react-native-image-zoom

react native image pan and zoom
MIT License
639 stars 282 forks source link

horizontal bounceback #55

Closed marconett closed 6 years ago

marconett commented 6 years ago

with:

        <ImageZoom
          cropWidth={Dimensions.get('window').width}
          cropHeight={Dimensions.get('window').height}
          imageWidth={4096}
          imageHeight={4096}
        >
            <Image
              style={{width:4096, height:4096}}
              source={Images.testPic}
            />
        </ImageZoom>

default (original) behavior: default

with new prop enableHorizontalBounce={true} allows for the following behavior: enablehorizontalbounce