This commit is contained in:
Anton Kalinin 2019-12-02 10:13:35 +01:00
commit 7ba12b356d
3 changed files with 6 additions and 0 deletions

View File

@ -91,6 +91,8 @@ const ImageItem = ({
style={styles.listItem}
pagingEnabled
nestedScrollEnabled
showsHorizontalScrollIndicator={false}
showsVerticalScrollIndicator={false}
contentContainerStyle={styles.imageScrollContainer}
scrollEnabled={swipeToCloseEnabled}
{...(swipeToCloseEnabled && {

View File

@ -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}

View File

@ -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}