Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix tall image lightbox on Android (#4393)

authored by

dan and committed by
GitHub
55976415 38019329

+14 -8
+14 -8
src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx
··· 1 1 import React, {useState} from 'react' 2 - 3 2 import {ActivityIndicator, Dimensions, StyleSheet} from 'react-native' 4 - import {Image} from 'expo-image' 3 + import {Gesture, GestureDetector} from 'react-native-gesture-handler' 5 4 import Animated, { 6 5 runOnJS, 6 + useAnimatedReaction, 7 7 useAnimatedRef, 8 8 useAnimatedStyle, 9 - useAnimatedReaction, 10 9 useSharedValue, 11 10 withDecay, 12 11 withSpring, 13 12 } from 'react-native-reanimated' 14 - import {GestureDetector, Gesture} from 'react-native-gesture-handler' 13 + import {Image} from 'expo-image' 14 + 15 + import type {Dimensions as ImageDimensions, ImageSource} from '../../@types' 15 16 import useImageDimensions from '../../hooks/useImageDimensions' 16 17 import { 17 - createTransform, 18 - readTransform, 19 18 applyRounding, 19 + createTransform, 20 20 prependPan, 21 21 prependPinch, 22 22 prependTransform, 23 + readTransform, 23 24 TransformMatrix, 24 25 } from '../../transforms' 25 - import type {ImageSource, Dimensions as ImageDimensions} from '../../@types' 26 26 27 - const SCREEN = Dimensions.get('window') 27 + const windowDim = Dimensions.get('window') 28 + const screenDim = Dimensions.get('screen') 29 + const statusBarHeight = windowDim.height - screenDim.height 30 + const SCREEN = { 31 + width: windowDim.width, 32 + height: windowDim.height + statusBarHeight, 33 + } 28 34 const MIN_DOUBLE_TAP_SCALE = 2 29 35 const MAX_ORIGINAL_IMAGE_ZOOM = 2 30 36