Skip to main content

Provider

useInfiniteSwiperContext is hooks to read internal context of scale swiper

Type

export interface ContextType {
itemCount: number;
activeIndex: number;
scroll: Animated.Value;
}

Example

import { useInfiniteSwiperContext } from 'react-native-awesome-swiper';

const UI = () => {
const { itemCount, activeIndex, scrollX } = useInfiniteSwiperContext();
return <View />;
};