From b12cfbe90b69d0ec1327c92a1e898be629ebf06b Mon Sep 17 00:00:00 2001 From: Muneyuki Noguchi Date: Tue, 10 Oct 2023 04:29:16 +0900 Subject: Fix typo in image.ts (#1638) --- src/state/models/media/image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/state/models/media/image.ts b/src/state/models/media/image.ts index 10aef0ff4..c26f9b87c 100644 --- a/src/state/models/media/image.ts +++ b/src/state/models/media/image.ts @@ -166,7 +166,7 @@ export class ImageModel implements Omit { async crop() { try { // NOTE - // on ios, react-native-image-cropper gives really bad quality + // on ios, react-native-image-crop-picker gives really bad quality // without specifying width and height. on android, however, the // crop stretches incorrectly if you do specify it. these are // both separate bugs in the library. we deal with that by -- cgit 1.4.1 From ce0f79600870d373bd8289c13f4efb44b253ffb1 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 9 Oct 2023 22:29:56 +0100 Subject: Remove unnecessary opacity logic (#1646) --- src/view/com/lightbox/ImageViewing/index.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/view/com/lightbox/ImageViewing/index.tsx b/src/view/com/lightbox/ImageViewing/index.tsx index bc2a8a448..b6b321c4a 100644 --- a/src/view/com/lightbox/ImageViewing/index.tsx +++ b/src/view/com/lightbox/ImageViewing/index.tsx @@ -71,7 +71,6 @@ function ImageViewing({ const imageList = useRef>(null) const [isScaled, setIsScaled] = useState(false) const [isDragging, setIsDragging] = useState(false) - const [opacity, setOpacity] = useState(1) const [currentImageIndex, setImageIndex] = useState(imageIndex) const [headerTranslate] = useState( () => new Animated.ValueXY(INITIAL_POSITION), @@ -100,12 +99,6 @@ function ImageViewing({ } } - const onRequestCloseEnhanced = () => { - setOpacity(0) - onRequestClose() - setTimeout(() => setOpacity(1), 0) - } - const onScroll = (event: NativeSyntheticEvent) => { const { nativeEvent: { @@ -162,14 +155,14 @@ function ImageViewing({ aria-modal accessibilityViewIsModal> - + {typeof HeaderComponent !== 'undefined' ? ( React.createElement(HeaderComponent, { imageIndex: currentImageIndex, }) ) : ( - + )} -- cgit 1.4.1