Merge branch 'master' of https://github.com/jobtoday/react-native-image-viewing
This commit is contained in:
commit
7ba12b356d
|
@ -91,6 +91,8 @@ const ImageItem = ({
|
|||
style={styles.listItem}
|
||||
pagingEnabled
|
||||
nestedScrollEnabled
|
||||
showsHorizontalScrollIndicator={false}
|
||||
showsVerticalScrollIndicator={false}
|
||||
contentContainerStyle={styles.imageScrollContainer}
|
||||
scrollEnabled={swipeToCloseEnabled}
|
||||
{...(swipeToCloseEnabled && {
|
||||
|
|
|
@ -92,6 +92,8 @@ const ImageItem = ({
|
|||
style={styles.listItem}
|
||||
pinchGestureEnabled
|
||||
nestedScrollEnabled={true}
|
||||
showsHorizontalScrollIndicator={false}
|
||||
showsVerticalScrollIndicator={false}
|
||||
maximumZoomScale={Math.max(1 / scale, 1)}
|
||||
contentContainerStyle={styles.imageScrollContainer}
|
||||
scrollEnabled={swipeToCloseEnabled}
|
||||
|
|
|
@ -80,6 +80,8 @@ function ImageViewing({
|
|||
initialNumToRender={1}
|
||||
maxToRenderPerBatch={1}
|
||||
nestedScrollEnabled={true}
|
||||
showsHorizontalScrollIndicator={false}
|
||||
showsVerticalScrollIndicator={false}
|
||||
initialScrollIndex={imageIndex}
|
||||
getItem={(_, index) => images[index]}
|
||||
getItemCount={() => images.length}
|
||||
|
|
Loading…
Reference in New Issue