/** * Shared values for carousel index and edge-pan gesture tracking. * * @example * const { activeIndex, touchStartX } = useParallaxSliderCarouselState(0); */ import { useSharedValue } from 'react-native-reanimated'; export const useParallaxSliderCarouselState = (startIndex: number) => { const activeIndex = useSharedValue(startIndex); const touchStartX = useSharedValue(0); return { activeIndex, touchStartX }; };