Skip to content

Commit

Permalink
step 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Caputo committed Dec 5, 2024
1 parent 8b8d134 commit a52ce1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Animated, {
useAnimatedStyle,
useSharedValue,
withSpring,
withTiming,
} from "react-native-reanimated";
import { Image } from "expo-image";
import { IMG_HEIGHT, STACK_OFFSET } from "@/constants";
Expand Down Expand Up @@ -54,6 +55,9 @@ const ListItem = ({

const rItemStyle = useAnimatedStyle<ViewStyle>(() => ({
transform: [{ translateY: yOffset.value }],
height: withTiming(
index === selectedIndex.value ? IMG_HEIGHT + 200 : IMG_HEIGHT
),
}));

const tapGesture = Gesture.Tap().onStart(() => {
Expand Down

0 comments on commit a52ce1d

Please sign in to comment.