From de1a6fe14d63d75dc4f5e8c3600c82433b33cc45 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 1 Nov 2024 03:20:00 +0000 Subject: [PATCH] Prevent OOB scroll on iOS when zoomed in --- .../components/ImageItem/ImageItem.ios.tsx | 46 ++++++++----------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx index d98078f792..32dcf75bee 100644 --- a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx +++ b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx @@ -7,7 +7,7 @@ */ import React, {useState} from 'react' -import {ActivityIndicator, Dimensions, StyleSheet, View} from 'react-native' +import {ActivityIndicator, Dimensions, StyleSheet} from 'react-native' import { Gesture, GestureDetector, @@ -121,44 +121,34 @@ const ImageItem = ({ - - - - + bounces={scaled} + centerContent> + + ) } const styles = StyleSheet.create({ - imageScrollContainer: { - height: SCREEN.height, - }, - listItem: { - width: SCREEN.width, - height: SCREEN.height, - }, - image: { - width: SCREEN.width, - height: SCREEN.height, - }, loading: { position: 'absolute', top: 0,