UNPKG

react-native-ui-lib

Version:

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

10 lines (9 loc) 575 B
import { PropsWithChildren } from 'react'; import { CarouselProps, CarouselState } from './types'; export declare function getChildrenLength(props: PropsWithChildren<CarouselProps>): number; export declare function calcOffset(props: CarouselProps, state: Omit<CarouselState, 'initialOffset' | 'prevProps' | 'currentStandingPage'>): { x: number; y: number; }; export declare function calcPageIndex(offset: number, props: CarouselProps, pageSize: number): number; export declare function isOutOfBounds(offset: number, props: CarouselProps, pageWidth: number): boolean;