Compare commits

...

4 Commits

Author SHA1 Message Date
Dan Abramov b124892ebf del 2024-11-12 23:08:17 +00:00
Dan Abramov f4479fdb26 wip 2024-11-12 23:04:09 +00:00
Dan Abramov 002ac6aba9 try 2 2024-11-12 20:48:18 +00:00
Dan Abramov f0e95d4ac8 semistable 2024-11-12 19:30:58 +00:00
@@ -14,11 +14,15 @@ import {
PanGesture,
} from 'react-native-gesture-handler'
import Animated, {
interpolate,
runOnJS,
setNativeProps,
SharedValue,
useAnimatedProps,
useAnimatedReaction,
useAnimatedRef,
useAnimatedStyle,
useSharedValue,
} from 'react-native-reanimated'
import {useSafeAreaFrame} from 'react-native-safe-area-context'
import {Image} from 'expo-image'
@@ -150,9 +154,10 @@ const ImageItem = ({
const containerStyle = useAnimatedStyle(() => {
const {scaleAndMoveTransform, isHidden} = transforms.value
return {
flex: 1,
// flex: 1,
transform: scaleAndMoveTransform,
opacity: isHidden ? 0 : 1,
backgroundColor: 'red',
}
})
@@ -210,9 +215,9 @@ const ImageItem = ({
maximumZoomScale={maxZoomScale}
onScroll={scrollHandler}
style={containerStyle}
bounces={scaled}
bouncesZoom={true}
centerContent>
contentContainerStyle={{
flex: 1,
}}>
{showLoader && (
<ActivityIndicator size="small" color="#FFF" style={styles.loading} />
)}