@leonsilicon/react-native-reanimated-carousel 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +652 -0
- package/lib/commonjs/components/Carousel.js +2 -0
- package/lib/commonjs/components/Carousel.js.map +1 -0
- package/lib/commonjs/components/CarouselLayout.js +2 -0
- package/lib/commonjs/components/CarouselLayout.js.map +1 -0
- package/lib/commonjs/components/ItemLayout.js +2 -0
- package/lib/commonjs/components/ItemLayout.js.map +1 -0
- package/lib/commonjs/components/ItemRenderer.js +2 -0
- package/lib/commonjs/components/ItemRenderer.js.map +1 -0
- package/lib/commonjs/components/LazyView.js +2 -0
- package/lib/commonjs/components/LazyView.js.map +1 -0
- package/lib/commonjs/components/Pagination/Basic/PaginationItem.js +2 -0
- package/lib/commonjs/components/Pagination/Basic/PaginationItem.js.map +1 -0
- package/lib/commonjs/components/Pagination/Basic/index.js +2 -0
- package/lib/commonjs/components/Pagination/Basic/index.js.map +1 -0
- package/lib/commonjs/components/Pagination/Custom/PaginationItem.js +2 -0
- package/lib/commonjs/components/Pagination/Custom/PaginationItem.js.map +1 -0
- package/lib/commonjs/components/Pagination/Custom/index.js +2 -0
- package/lib/commonjs/components/Pagination/Custom/index.js.map +1 -0
- package/lib/commonjs/components/Pagination/index.js +2 -0
- package/lib/commonjs/components/Pagination/index.js.map +1 -0
- package/lib/commonjs/components/ScrollViewGesture.js +2 -0
- package/lib/commonjs/components/ScrollViewGesture.js.map +1 -0
- package/lib/commonjs/constants/index.js +2 -0
- package/lib/commonjs/constants/index.js.map +1 -0
- package/lib/commonjs/hooks/useAutoPlay.js +2 -0
- package/lib/commonjs/hooks/useAutoPlay.js.map +1 -0
- package/lib/commonjs/hooks/useCarouselController.js +2 -0
- package/lib/commonjs/hooks/useCarouselController.js.map +1 -0
- package/lib/commonjs/hooks/useCheckMounted.js +2 -0
- package/lib/commonjs/hooks/useCheckMounted.js.map +1 -0
- package/lib/commonjs/hooks/useCommonVariables.js +2 -0
- package/lib/commonjs/hooks/useCommonVariables.js.map +1 -0
- package/lib/commonjs/hooks/useInitProps.js +2 -0
- package/lib/commonjs/hooks/useInitProps.js.map +1 -0
- package/lib/commonjs/hooks/useLayoutConfig.js +2 -0
- package/lib/commonjs/hooks/useLayoutConfig.js.map +1 -0
- package/lib/commonjs/hooks/useOffsetX.js +2 -0
- package/lib/commonjs/hooks/useOffsetX.js.map +1 -0
- package/lib/commonjs/hooks/useOnProgressChange.js +2 -0
- package/lib/commonjs/hooks/useOnProgressChange.js.map +1 -0
- package/lib/commonjs/hooks/usePanGestureProxy.js +2 -0
- package/lib/commonjs/hooks/usePanGestureProxy.js.map +1 -0
- package/lib/commonjs/hooks/usePropsErrorBoundary.js +2 -0
- package/lib/commonjs/hooks/usePropsErrorBoundary.js.map +1 -0
- package/lib/commonjs/hooks/useSizeResolver.js +2 -0
- package/lib/commonjs/hooks/useSizeResolver.js.map +1 -0
- package/lib/commonjs/hooks/useUpdateGestureConfig.js +2 -0
- package/lib/commonjs/hooks/useUpdateGestureConfig.js.map +1 -0
- package/lib/commonjs/hooks/useVisibleRanges.js +2 -0
- package/lib/commonjs/hooks/useVisibleRanges.js.map +1 -0
- package/lib/commonjs/index.js +2 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/layouts/index.js +2 -0
- package/lib/commonjs/layouts/index.js.map +1 -0
- package/lib/commonjs/layouts/normal.js +2 -0
- package/lib/commonjs/layouts/normal.js.map +1 -0
- package/lib/commonjs/layouts/parallax.js +2 -0
- package/lib/commonjs/layouts/parallax.js.map +1 -0
- package/lib/commonjs/layouts/stack.js +2 -0
- package/lib/commonjs/layouts/stack.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/store/index.js +2 -0
- package/lib/commonjs/store/index.js.map +1 -0
- package/lib/commonjs/types.js +2 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/utils/compute-gesture-translation.js +2 -0
- package/lib/commonjs/utils/compute-gesture-translation.js.map +1 -0
- package/lib/commonjs/utils/compute-offset-if-data-changed.js +2 -0
- package/lib/commonjs/utils/compute-offset-if-data-changed.js.map +1 -0
- package/lib/commonjs/utils/compute-offset-if-size-changed.js +2 -0
- package/lib/commonjs/utils/compute-offset-if-size-changed.js.map +1 -0
- package/lib/commonjs/utils/compute-offset-if-sizes-changed.js +2 -0
- package/lib/commonjs/utils/compute-offset-if-sizes-changed.js.map +1 -0
- package/lib/commonjs/utils/computed-with-auto-fill-data.js +2 -0
- package/lib/commonjs/utils/computed-with-auto-fill-data.js.map +1 -0
- package/lib/commonjs/utils/deal-with-animation.js +2 -0
- package/lib/commonjs/utils/deal-with-animation.js.map +1 -0
- package/lib/commonjs/utils/handleroffset-direction.js +2 -0
- package/lib/commonjs/utils/handleroffset-direction.js.map +1 -0
- package/lib/commonjs/utils/log.js +2 -0
- package/lib/commonjs/utils/log.js.map +1 -0
- package/lib/commonjs/utils/sanitize-animation-style.js +2 -0
- package/lib/commonjs/utils/sanitize-animation-style.js.map +1 -0
- package/lib/commonjs/utils/size-resolver.js +2 -0
- package/lib/commonjs/utils/size-resolver.js.map +1 -0
- package/lib/module/components/Carousel.js +2 -0
- package/lib/module/components/Carousel.js.map +1 -0
- package/lib/module/components/CarouselLayout.js +2 -0
- package/lib/module/components/CarouselLayout.js.map +1 -0
- package/lib/module/components/ItemLayout.js +2 -0
- package/lib/module/components/ItemLayout.js.map +1 -0
- package/lib/module/components/ItemRenderer.js +2 -0
- package/lib/module/components/ItemRenderer.js.map +1 -0
- package/lib/module/components/LazyView.js +2 -0
- package/lib/module/components/LazyView.js.map +1 -0
- package/lib/module/components/Pagination/Basic/PaginationItem.js +2 -0
- package/lib/module/components/Pagination/Basic/PaginationItem.js.map +1 -0
- package/lib/module/components/Pagination/Basic/index.js +2 -0
- package/lib/module/components/Pagination/Basic/index.js.map +1 -0
- package/lib/module/components/Pagination/Custom/PaginationItem.js +2 -0
- package/lib/module/components/Pagination/Custom/PaginationItem.js.map +1 -0
- package/lib/module/components/Pagination/Custom/index.js +2 -0
- package/lib/module/components/Pagination/Custom/index.js.map +1 -0
- package/lib/module/components/Pagination/index.js +2 -0
- package/lib/module/components/Pagination/index.js.map +1 -0
- package/lib/module/components/ScrollViewGesture.js +2 -0
- package/lib/module/components/ScrollViewGesture.js.map +1 -0
- package/lib/module/constants/index.js +2 -0
- package/lib/module/constants/index.js.map +1 -0
- package/lib/module/hooks/useAutoPlay.js +2 -0
- package/lib/module/hooks/useAutoPlay.js.map +1 -0
- package/lib/module/hooks/useCarouselController.js +2 -0
- package/lib/module/hooks/useCarouselController.js.map +1 -0
- package/lib/module/hooks/useCheckMounted.js +2 -0
- package/lib/module/hooks/useCheckMounted.js.map +1 -0
- package/lib/module/hooks/useCommonVariables.js +2 -0
- package/lib/module/hooks/useCommonVariables.js.map +1 -0
- package/lib/module/hooks/useInitProps.js +2 -0
- package/lib/module/hooks/useInitProps.js.map +1 -0
- package/lib/module/hooks/useLayoutConfig.js +2 -0
- package/lib/module/hooks/useLayoutConfig.js.map +1 -0
- package/lib/module/hooks/useOffsetX.js +2 -0
- package/lib/module/hooks/useOffsetX.js.map +1 -0
- package/lib/module/hooks/useOnProgressChange.js +2 -0
- package/lib/module/hooks/useOnProgressChange.js.map +1 -0
- package/lib/module/hooks/usePanGestureProxy.js +2 -0
- package/lib/module/hooks/usePanGestureProxy.js.map +1 -0
- package/lib/module/hooks/usePropsErrorBoundary.js +2 -0
- package/lib/module/hooks/usePropsErrorBoundary.js.map +1 -0
- package/lib/module/hooks/useSizeResolver.js +2 -0
- package/lib/module/hooks/useSizeResolver.js.map +1 -0
- package/lib/module/hooks/useUpdateGestureConfig.js +2 -0
- package/lib/module/hooks/useUpdateGestureConfig.js.map +1 -0
- package/lib/module/hooks/useVisibleRanges.js +2 -0
- package/lib/module/hooks/useVisibleRanges.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/layouts/index.js +2 -0
- package/lib/module/layouts/index.js.map +1 -0
- package/lib/module/layouts/normal.js +2 -0
- package/lib/module/layouts/normal.js.map +1 -0
- package/lib/module/layouts/parallax.js +2 -0
- package/lib/module/layouts/parallax.js.map +1 -0
- package/lib/module/layouts/stack.js +2 -0
- package/lib/module/layouts/stack.js.map +1 -0
- package/lib/module/store/index.js +2 -0
- package/lib/module/store/index.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/compute-gesture-translation.js +2 -0
- package/lib/module/utils/compute-gesture-translation.js.map +1 -0
- package/lib/module/utils/compute-offset-if-data-changed.js +2 -0
- package/lib/module/utils/compute-offset-if-data-changed.js.map +1 -0
- package/lib/module/utils/compute-offset-if-size-changed.js +2 -0
- package/lib/module/utils/compute-offset-if-size-changed.js.map +1 -0
- package/lib/module/utils/compute-offset-if-sizes-changed.js +2 -0
- package/lib/module/utils/compute-offset-if-sizes-changed.js.map +1 -0
- package/lib/module/utils/computed-with-auto-fill-data.js +2 -0
- package/lib/module/utils/computed-with-auto-fill-data.js.map +1 -0
- package/lib/module/utils/deal-with-animation.js +2 -0
- package/lib/module/utils/deal-with-animation.js.map +1 -0
- package/lib/module/utils/handleroffset-direction.js +2 -0
- package/lib/module/utils/handleroffset-direction.js.map +1 -0
- package/lib/module/utils/log.js +2 -0
- package/lib/module/utils/log.js.map +1 -0
- package/lib/module/utils/sanitize-animation-style.js +2 -0
- package/lib/module/utils/sanitize-animation-style.js.map +1 -0
- package/lib/module/utils/size-resolver.js +2 -0
- package/lib/module/utils/size-resolver.js.map +1 -0
- package/lib/typescript/components/Carousel.d.ts +8 -0
- package/lib/typescript/components/Carousel.d.ts.map +1 -0
- package/lib/typescript/components/CarouselLayout.d.ts +6 -0
- package/lib/typescript/components/CarouselLayout.d.ts.map +1 -0
- package/lib/typescript/components/ItemLayout.d.ts +15 -0
- package/lib/typescript/components/ItemLayout.d.ts.map +1 -0
- package/lib/typescript/components/ItemRenderer.d.ts +24 -0
- package/lib/typescript/components/ItemRenderer.d.ts.map +1 -0
- package/lib/typescript/components/LazyView.d.ts +8 -0
- package/lib/typescript/components/LazyView.d.ts.map +1 -0
- package/lib/typescript/components/Pagination/Basic/PaginationItem.d.ts +29 -0
- package/lib/typescript/components/Pagination/Basic/PaginationItem.d.ts.map +1 -0
- package/lib/typescript/components/Pagination/Basic/index.d.ts +23 -0
- package/lib/typescript/components/Pagination/Basic/index.d.ts.map +1 -0
- package/lib/typescript/components/Pagination/Custom/PaginationItem.d.ts +35 -0
- package/lib/typescript/components/Pagination/Custom/PaginationItem.d.ts.map +1 -0
- package/lib/typescript/components/Pagination/Custom/index.d.ts +26 -0
- package/lib/typescript/components/Pagination/Custom/index.d.ts.map +1 -0
- package/lib/typescript/components/Pagination/index.d.ts +5 -0
- package/lib/typescript/components/Pagination/index.d.ts.map +1 -0
- package/lib/typescript/components/ScrollViewGesture.d.ts +19 -0
- package/lib/typescript/components/ScrollViewGesture.d.ts.map +1 -0
- package/lib/typescript/constants/index.d.ts +9 -0
- package/lib/typescript/constants/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useAutoPlay.d.ts +12 -0
- package/lib/typescript/hooks/useAutoPlay.d.ts.map +1 -0
- package/lib/typescript/hooks/useCarouselController.d.ts +28 -0
- package/lib/typescript/hooks/useCarouselController.d.ts.map +1 -0
- package/lib/typescript/hooks/useCheckMounted.d.ts +3 -0
- package/lib/typescript/hooks/useCheckMounted.d.ts.map +1 -0
- package/lib/typescript/hooks/useCommonVariables.d.ts +13 -0
- package/lib/typescript/hooks/useCommonVariables.d.ts.map +1 -0
- package/lib/typescript/hooks/useInitProps.d.ts +17 -0
- package/lib/typescript/hooks/useInitProps.d.ts.map +1 -0
- package/lib/typescript/hooks/useLayoutConfig.d.ts +10 -0
- package/lib/typescript/hooks/useLayoutConfig.d.ts.map +1 -0
- package/lib/typescript/hooks/useOffsetX.d.ts +24 -0
- package/lib/typescript/hooks/useOffsetX.d.ts.map +1 -0
- package/lib/typescript/hooks/useOnProgressChange.d.ts +14 -0
- package/lib/typescript/hooks/useOnProgressChange.d.ts.map +1 -0
- package/lib/typescript/hooks/usePanGestureProxy.d.ts +10 -0
- package/lib/typescript/hooks/usePanGestureProxy.d.ts.map +1 -0
- package/lib/typescript/hooks/usePropsErrorBoundary.d.ts +5 -0
- package/lib/typescript/hooks/usePropsErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/hooks/useSizeResolver.d.ts +27 -0
- package/lib/typescript/hooks/useSizeResolver.d.ts.map +1 -0
- package/lib/typescript/hooks/useUpdateGestureConfig.d.ts +6 -0
- package/lib/typescript/hooks/useUpdateGestureConfig.d.ts.map +1 -0
- package/lib/typescript/hooks/useVisibleRanges.d.ts +23 -0
- package/lib/typescript/hooks/useVisibleRanges.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +7 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/layouts/index.d.ts +11 -0
- package/lib/typescript/layouts/index.d.ts.map +1 -0
- package/lib/typescript/layouts/normal.d.ts +16 -0
- package/lib/typescript/layouts/normal.d.ts.map +1 -0
- package/lib/typescript/layouts/parallax.d.ts +50 -0
- package/lib/typescript/layouts/parallax.d.ts.map +1 -0
- package/lib/typescript/layouts/stack.d.ts +38 -0
- package/lib/typescript/layouts/stack.d.ts.map +1 -0
- package/lib/typescript/store/index.d.ts +38 -0
- package/lib/typescript/store/index.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +326 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/utils/compute-gesture-translation.d.ts +9 -0
- package/lib/typescript/utils/compute-gesture-translation.d.ts.map +1 -0
- package/lib/typescript/utils/compute-offset-if-data-changed.d.ts +9 -0
- package/lib/typescript/utils/compute-offset-if-data-changed.d.ts.map +1 -0
- package/lib/typescript/utils/compute-offset-if-size-changed.d.ts +6 -0
- package/lib/typescript/utils/compute-offset-if-size-changed.d.ts.map +1 -0
- package/lib/typescript/utils/compute-offset-if-sizes-changed.d.ts +14 -0
- package/lib/typescript/utils/compute-offset-if-sizes-changed.d.ts.map +1 -0
- package/lib/typescript/utils/computed-with-auto-fill-data.d.ts +23 -0
- package/lib/typescript/utils/computed-with-auto-fill-data.d.ts.map +1 -0
- package/lib/typescript/utils/deal-with-animation.d.ts +3 -0
- package/lib/typescript/utils/deal-with-animation.d.ts.map +1 -0
- package/lib/typescript/utils/handleroffset-direction.d.ts +4 -0
- package/lib/typescript/utils/handleroffset-direction.d.ts.map +1 -0
- package/lib/typescript/utils/log.d.ts +7 -0
- package/lib/typescript/utils/log.d.ts.map +1 -0
- package/lib/typescript/utils/sanitize-animation-style.d.ts +3 -0
- package/lib/typescript/utils/sanitize-animation-style.d.ts.map +1 -0
- package/lib/typescript/utils/size-resolver.d.ts +87 -0
- package/lib/typescript/utils/size-resolver.d.ts.map +1 -0
- package/package.json +151 -0
- package/src/components/Carousel.test.tsx +1153 -0
- package/src/components/Carousel.tsx +35 -0
- package/src/components/CarouselLayout.tsx +231 -0
- package/src/components/ItemLayout.tsx +217 -0
- package/src/components/ItemRenderer.tsx +114 -0
- package/src/components/LazyView.test.tsx +61 -0
- package/src/components/LazyView.tsx +14 -0
- package/src/components/Pagination/Basic/PaginationItem.tsx +149 -0
- package/src/components/Pagination/Basic/index.tsx +98 -0
- package/src/components/Pagination/Custom/PaginationItem.tsx +166 -0
- package/src/components/Pagination/Custom/index.tsx +111 -0
- package/src/components/Pagination/Pagination.test.tsx +178 -0
- package/src/components/Pagination/index.tsx +7 -0
- package/src/components/ScrollViewGesture.tsx +577 -0
- package/src/components/rnr-demo.test.tsx +53 -0
- package/src/constants/index.ts +11 -0
- package/src/hooks/useAutoPlay.test.ts +194 -0
- package/src/hooks/useAutoPlay.ts +58 -0
- package/src/hooks/useCarouselController.test.tsx +1158 -0
- package/src/hooks/useCarouselController.tsx +525 -0
- package/src/hooks/useCheckMounted.test.ts +47 -0
- package/src/hooks/useCheckMounted.ts +14 -0
- package/src/hooks/useCommonVariables.test.tsx +384 -0
- package/src/hooks/useCommonVariables.ts +202 -0
- package/src/hooks/useInitProps.test.tsx +134 -0
- package/src/hooks/useInitProps.ts +111 -0
- package/src/hooks/useLayoutConfig.test.tsx +247 -0
- package/src/hooks/useLayoutConfig.ts +30 -0
- package/src/hooks/useOffsetX.test.ts +110 -0
- package/src/hooks/useOffsetX.ts +109 -0
- package/src/hooks/useOnProgressChange.test.tsx +207 -0
- package/src/hooks/useOnProgressChange.ts +105 -0
- package/src/hooks/usePanGestureProxy.test.tsx +368 -0
- package/src/hooks/usePanGestureProxy.ts +144 -0
- package/src/hooks/usePropsErrorBoundary.ts +138 -0
- package/src/hooks/useSizeResolver.test.tsx +112 -0
- package/src/hooks/useSizeResolver.ts +106 -0
- package/src/hooks/useUpdateGestureConfig.test.ts +89 -0
- package/src/hooks/useUpdateGestureConfig.ts +14 -0
- package/src/hooks/useVisibleRanges.test.tsx +366 -0
- package/src/hooks/useVisibleRanges.tsx +123 -0
- package/src/index.tsx +13 -0
- package/src/layouts/index.tsx +12 -0
- package/src/layouts/normal.ts +32 -0
- package/src/layouts/parallax.test.ts +239 -0
- package/src/layouts/parallax.ts +83 -0
- package/src/layouts/stack.test.ts +252 -0
- package/src/layouts/stack.ts +306 -0
- package/src/store/index.test.tsx +314 -0
- package/src/store/index.tsx +66 -0
- package/src/types.ts +348 -0
- package/src/utils/compute-gesture-translation.test.ts +70 -0
- package/src/utils/compute-gesture-translation.ts +29 -0
- package/src/utils/compute-offset-if-data-changed.test.ts +133 -0
- package/src/utils/compute-offset-if-data-changed.ts +44 -0
- package/src/utils/compute-offset-if-size-changed.test.ts +78 -0
- package/src/utils/compute-offset-if-size-changed.ts +14 -0
- package/src/utils/compute-offset-if-sizes-changed.test.ts +74 -0
- package/src/utils/compute-offset-if-sizes-changed.ts +44 -0
- package/src/utils/computed-with-auto-fill-data.test.ts +298 -0
- package/src/utils/computed-with-auto-fill-data.ts +92 -0
- package/src/utils/deal-with-animation.test.ts +181 -0
- package/src/utils/deal-with-animation.ts +17 -0
- package/src/utils/handleroffset-direction.test.ts +124 -0
- package/src/utils/handleroffset-direction.ts +18 -0
- package/src/utils/index.test.ts +90 -0
- package/src/utils/log.test.ts +134 -0
- package/src/utils/log.ts +12 -0
- package/src/utils/sanitize-animation-style.test.ts +40 -0
- package/src/utils/sanitize-animation-style.ts +20 -0
- package/src/utils/size-resolver.test.ts +193 -0
- package/src/utils/size-resolver.ts +216 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { IComputedDirectionTypes } from "../types";
|
|
2
|
+
import type { SizeResolver } from "../utils/size-resolver";
|
|
3
|
+
interface TBaseConfig {
|
|
4
|
+
size: number;
|
|
5
|
+
vertical: boolean;
|
|
6
|
+
/** When supplied, per-item translations and zIndex use the resolver. */
|
|
7
|
+
sizeResolver?: SizeResolver;
|
|
8
|
+
}
|
|
9
|
+
export interface ILayoutConfig {
|
|
10
|
+
/**
|
|
11
|
+
* control prev/next item offset.
|
|
12
|
+
* @default 100
|
|
13
|
+
*/
|
|
14
|
+
parallaxScrollingOffset?: number;
|
|
15
|
+
/**
|
|
16
|
+
* control prev/current/next item offset.
|
|
17
|
+
* @default 0.8
|
|
18
|
+
*/
|
|
19
|
+
parallaxScrollingScale?: number;
|
|
20
|
+
/**
|
|
21
|
+
* control prev/next item offset.
|
|
22
|
+
* @default Math.pow(parallaxScrollingScale, 2)
|
|
23
|
+
*/
|
|
24
|
+
parallaxAdjacentItemScale?: number;
|
|
25
|
+
}
|
|
26
|
+
export type TParallaxModeProps = IComputedDirectionTypes<{
|
|
27
|
+
/**
|
|
28
|
+
* Carousel Animated transitions.
|
|
29
|
+
*/
|
|
30
|
+
mode?: "parallax";
|
|
31
|
+
modeConfig?: ILayoutConfig;
|
|
32
|
+
}>;
|
|
33
|
+
export declare function parallaxLayout(baseConfig: TBaseConfig, modeConfig?: ILayoutConfig): (value: number, index: number) => {
|
|
34
|
+
transform: ({
|
|
35
|
+
translateY: number;
|
|
36
|
+
translateX?: undefined;
|
|
37
|
+
scale?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
translateX: number;
|
|
40
|
+
translateY?: undefined;
|
|
41
|
+
scale?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
scale: number;
|
|
44
|
+
translateY?: undefined;
|
|
45
|
+
translateX?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
zIndex: number;
|
|
48
|
+
};
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=parallax.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parallax.d.ts","sourceRoot":"","sources":["../../../src/layouts/parallax.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,wEAAwE;IACxE,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG,uBAAuB,CAAC;IACvD;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B,CAAC,CAAC;AAEH,wBAAgB,cAAc,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,GAAE,aAAkB,WAQrE,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;EAoCrC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ViewStyle } from "react-native";
|
|
2
|
+
import type { CustomConfig, IComputedDirectionTypes } from "../types";
|
|
3
|
+
export interface ILayoutConfig {
|
|
4
|
+
showLength?: number;
|
|
5
|
+
moveSize?: number;
|
|
6
|
+
stackInterval?: number;
|
|
7
|
+
scaleInterval?: number;
|
|
8
|
+
opacityInterval?: number;
|
|
9
|
+
rotateZDeg?: number;
|
|
10
|
+
snapDirection?: "left" | "right";
|
|
11
|
+
}
|
|
12
|
+
export type TStackModeProps = IComputedDirectionTypes<{
|
|
13
|
+
/**
|
|
14
|
+
* Carousel Animated transitions.
|
|
15
|
+
*/
|
|
16
|
+
mode?: "horizontal-stack" | "vertical-stack";
|
|
17
|
+
/**
|
|
18
|
+
* Stack animation style.
|
|
19
|
+
* @default
|
|
20
|
+
* snapDirection: 'right',
|
|
21
|
+
* moveSize: window.width,
|
|
22
|
+
* stackInterval: 30,
|
|
23
|
+
* scaleInterval: 0.08,
|
|
24
|
+
* rotateZDeg: 135,
|
|
25
|
+
* opacityInterval: 0.1,
|
|
26
|
+
*/
|
|
27
|
+
modeConfig?: ILayoutConfig;
|
|
28
|
+
}>;
|
|
29
|
+
export declare function horizontalStackLayout(modeConfig?: ILayoutConfig): (_value: number) => ViewStyle;
|
|
30
|
+
export declare function useHorizontalStackLayout(customAnimationConfig?: ILayoutConfig, customConfig?: CustomConfig): {
|
|
31
|
+
layout: (_value: number) => ViewStyle;
|
|
32
|
+
config: {
|
|
33
|
+
type: string;
|
|
34
|
+
viewCount: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare function verticalStackLayout(modeConfig?: ILayoutConfig): (_value: number) => ViewStyle;
|
|
38
|
+
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../src/layouts/stack.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,cAAc,CAAC;AAI/D,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAItE,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAClC;AAED,MAAM,MAAM,eAAe,GAAG,uBAAuB,CAAC;IACpD;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,GAAG,gBAAgB,CAAC;IAC7C;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B,CAAC,CAAC;AAEH,wBAAgB,qBAAqB,CAAC,UAAU,GAAE,aAAkB,YAClD,MAAM,eA+EvB;AAED,wBAAgB,wBAAwB,CACtC,qBAAqB,GAAE,aAAkB,EACzC,YAAY,GAAE,YAAiB;qBAnFf,MAAM;;;;;EAkGvB;AAED,wBAAgB,mBAAmB,CAAC,UAAU,GAAE,aAAkB,YAChD,MAAM,eAqFvB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SharedValue } from "react-native-reanimated";
|
|
3
|
+
import type { ICommonVariables } from "../hooks/useCommonVariables";
|
|
4
|
+
import type { TInitializeCarouselProps } from "../hooks/useInitProps";
|
|
5
|
+
import type { SizeResolver } from "../utils/size-resolver";
|
|
6
|
+
type ItemDimensions = Record<number, {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}>;
|
|
10
|
+
export interface IContext {
|
|
11
|
+
props: TInitializeCarouselProps<any>;
|
|
12
|
+
common: ICommonVariables;
|
|
13
|
+
/** Per-item size resolver (uniform or variable). */
|
|
14
|
+
sizeResolver: SizeResolver;
|
|
15
|
+
layout: {
|
|
16
|
+
containerSize: SharedValue<{
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
}>;
|
|
20
|
+
updateContainerSize: (dimensions: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
}) => void;
|
|
24
|
+
itemDimensions: SharedValue<ItemDimensions>;
|
|
25
|
+
updateItemDimensions: (index: number, dimensions: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}) => void;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export declare const GlobalStateContext: React.Context<IContext>;
|
|
32
|
+
export declare const GlobalStateProvider: ({ children, value, }: {
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
value: Pick<IContext, "props" | "common" | "sizeResolver">;
|
|
35
|
+
}) => React.JSX.Element;
|
|
36
|
+
export declare const useGlobalState: () => IContext;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAExE,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,EAAE,gBAAgB,CAAC;IACzB,oDAAoD;IACpD,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE;QACN,aAAa,EAAE,WAAW,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAC9D,mBAAmB,EAAE,CAAC,UAAU,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,KAAK,IAAI,CAAC;QAC7E,cAAc,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;QAC5C,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,KAAK,IAAI,CAAC;KAC9F,CAAC;CACH;AAED,eAAO,MAAM,kBAAkB,yBAAgD,CAAC;AAEhF,eAAO,MAAM,mBAAmB,yBAG7B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC,CAAC;CAC5D,sBAyBA,CAAC;AAEF,eAAO,MAAM,cAAc,gBAQ1B,CAAC"}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import type { LayoutChangeEvent, StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { PanGesture } from "react-native-gesture-handler";
|
|
3
|
+
import type { SharedValue, WithSpringConfig, WithTimingConfig } from "react-native-reanimated";
|
|
4
|
+
import type { TParallaxModeProps } from "./layouts/parallax";
|
|
5
|
+
import type { TStackModeProps } from "./layouts/stack";
|
|
6
|
+
export type IComputedDirectionTypes<T, VP = {}, HP = {}> = (T & VP & {
|
|
7
|
+
/**
|
|
8
|
+
* Layout items vertically instead of horizontally
|
|
9
|
+
*/
|
|
10
|
+
vertical: true;
|
|
11
|
+
/**
|
|
12
|
+
* Specified carousel container width.
|
|
13
|
+
* @deprecated Use `style={{ width: ... }}` instead.
|
|
14
|
+
*/
|
|
15
|
+
width?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Specified carousel container height.
|
|
18
|
+
* @deprecated Use `style={{ height: ... }}` instead.
|
|
19
|
+
*/
|
|
20
|
+
height?: number;
|
|
21
|
+
}) | (T & HP & {
|
|
22
|
+
/**
|
|
23
|
+
* Layout items vertically instead of horizontally
|
|
24
|
+
*/
|
|
25
|
+
vertical?: false;
|
|
26
|
+
/**
|
|
27
|
+
* Specified carousel container width.
|
|
28
|
+
* @deprecated Use `style={{ width: ... }}` instead.
|
|
29
|
+
*/
|
|
30
|
+
width?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Specified carousel container height.
|
|
33
|
+
* @deprecated Use `style={{ height: ... }}` instead.
|
|
34
|
+
*/
|
|
35
|
+
height?: number;
|
|
36
|
+
});
|
|
37
|
+
export interface CustomConfig {
|
|
38
|
+
type?: "negative" | "positive";
|
|
39
|
+
viewCount?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface WithSpringAnimation {
|
|
42
|
+
type: "spring";
|
|
43
|
+
config: WithSpringConfig;
|
|
44
|
+
}
|
|
45
|
+
export interface WithTimingAnimation {
|
|
46
|
+
type: "timing";
|
|
47
|
+
config: WithTimingConfig;
|
|
48
|
+
}
|
|
49
|
+
export type WithAnimation = WithSpringAnimation | WithTimingAnimation;
|
|
50
|
+
export type TOnProgressChange = ((offsetProgress: number, absoluteProgress: number) => void)
|
|
51
|
+
/**
|
|
52
|
+
* When a SharedValue is provided, the carousel will write `absoluteProgress` into it.
|
|
53
|
+
*/
|
|
54
|
+
| SharedValue<number>;
|
|
55
|
+
export type TCarouselProps<T = any> = {
|
|
56
|
+
/**
|
|
57
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should handle the ref props
|
|
58
|
+
*/
|
|
59
|
+
ref?: React.Ref<ICarouselInstance>;
|
|
60
|
+
/**
|
|
61
|
+
* A shared value used internally as the carousel's translation (scroll offset) state.
|
|
62
|
+
*
|
|
63
|
+
* Prefer using `scrollOffsetValue` (same behavior, clearer name). This prop remains
|
|
64
|
+
* for backwards compatibility.
|
|
65
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should render the correct progress value with the defaultScrollOffsetValue props
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use `scrollOffsetValue` instead.
|
|
69
|
+
*/
|
|
70
|
+
defaultScrollOffsetValue?: SharedValue<number>;
|
|
71
|
+
/**
|
|
72
|
+
* A shared value used internally as the carousel's translation (scroll offset) state.
|
|
73
|
+
*
|
|
74
|
+
* - If provided, the carousel will **mutate** it during gestures/animations.
|
|
75
|
+
* - This is useful when you want to observe the scroll offset outside the carousel.
|
|
76
|
+
*/
|
|
77
|
+
scrollOffsetValue?: SharedValue<number>;
|
|
78
|
+
/**
|
|
79
|
+
* Carousel loop playback.
|
|
80
|
+
* @default true
|
|
81
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should swipe back to the first item when loop is true
|
|
82
|
+
*/
|
|
83
|
+
loop?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Carousel items data set.
|
|
86
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should render correctly
|
|
87
|
+
*/
|
|
88
|
+
data: T[];
|
|
89
|
+
/**
|
|
90
|
+
* Auto fill data array to allow loop playback when the loop props is true.
|
|
91
|
+
* @default true
|
|
92
|
+
* @example
|
|
93
|
+
* [1] => [1, 1, 1]
|
|
94
|
+
* [1, 2] => [1, 2, 1, 2]
|
|
95
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should auto fill data array to allow loop playback when the loop props is true
|
|
96
|
+
*/
|
|
97
|
+
autoFillData?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Default index
|
|
100
|
+
* @default 0
|
|
101
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should render the correct item with the defaultIndex props
|
|
102
|
+
*/
|
|
103
|
+
defaultIndex?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Auto play
|
|
106
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should swipe automatically when autoPlay is true
|
|
107
|
+
*/
|
|
108
|
+
autoPlay?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Auto play
|
|
111
|
+
* @description reverse playback
|
|
112
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should swipe automatically in reverse when autoPlayReverse is true
|
|
113
|
+
*/
|
|
114
|
+
autoPlayReverse?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Auto play
|
|
117
|
+
* @description playback interval
|
|
118
|
+
*/
|
|
119
|
+
autoPlayInterval?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Time a scroll animation takes to finish
|
|
122
|
+
* @default 500 (ms)
|
|
123
|
+
*/
|
|
124
|
+
scrollAnimationDuration?: number;
|
|
125
|
+
/**
|
|
126
|
+
* Carousel container style.
|
|
127
|
+
*/
|
|
128
|
+
style?: StyleProp<ViewStyle>;
|
|
129
|
+
/**
|
|
130
|
+
* Carousel content container style.
|
|
131
|
+
*/
|
|
132
|
+
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
133
|
+
/**
|
|
134
|
+
* Horizontal **page size** used for snapping and animations.
|
|
135
|
+
*
|
|
136
|
+
* This is NOT the same as the container width:
|
|
137
|
+
* - **Container size** comes from `style` (recommended) / deprecated `width` / layout measurement.
|
|
138
|
+
* - **Page size** controls snap distance & animation progress per page.
|
|
139
|
+
*
|
|
140
|
+
* Use this when you want multiple items visible in a single viewport (page size < container width).
|
|
141
|
+
* If not provided, the page size falls back to the carousel container width.
|
|
142
|
+
*/
|
|
143
|
+
itemWidth?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Vertical **page size** used for snapping and animations.
|
|
146
|
+
*
|
|
147
|
+
* See `itemWidth` for the container-size vs page-size distinction.
|
|
148
|
+
* If not provided, the page size falls back to the carousel container height.
|
|
149
|
+
*/
|
|
150
|
+
itemHeight?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Per-item width declaration (horizontal mode). Enables **variable-size mode**:
|
|
153
|
+
* every item can have a different width and the carousel still renders without
|
|
154
|
+
* blank frames, because positions are precomputed from a prefix-sum table
|
|
155
|
+
* before mount.
|
|
156
|
+
*
|
|
157
|
+
* Requirements & caveats:
|
|
158
|
+
* - Must return a positive, finite number for every index in `[0, data.length)`.
|
|
159
|
+
* - Treat the function identity as part of the data identity: changing the
|
|
160
|
+
* function reference triggers a full prefix-sum rebuild. Memoize with
|
|
161
|
+
* `React.useCallback` or hoist it to module scope.
|
|
162
|
+
* - When set, `onLayout` measurements never override these values — your
|
|
163
|
+
* declarations are authoritative.
|
|
164
|
+
* - `pagingEnabled` snaps to the **next item index** (one swipe = one item);
|
|
165
|
+
* per-page pixel distance therefore varies.
|
|
166
|
+
* - `autoFillData` is disabled in variable-size mode (it assumes uniform
|
|
167
|
+
* width); pre-duplicate data manually if needed.
|
|
168
|
+
*/
|
|
169
|
+
getItemWidth?: (index: number) => number;
|
|
170
|
+
/**
|
|
171
|
+
* Per-item height declaration (vertical mode). See `getItemWidth` for
|
|
172
|
+
* requirements and caveats — they apply identically along the vertical axis.
|
|
173
|
+
*/
|
|
174
|
+
getItemHeight?: (index: number) => number;
|
|
175
|
+
/**
|
|
176
|
+
* @deprecated Previously controlled the outer container width (v4 behaviour).
|
|
177
|
+
* Move this value into `style`, e.g. `style={{ width: 300 }}`.
|
|
178
|
+
*/
|
|
179
|
+
width?: number;
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated Previously controlled the outer container height (v4 behaviour).
|
|
182
|
+
* Move this value into `style`, e.g. `style={{ height: 200 }}`.
|
|
183
|
+
*/
|
|
184
|
+
height?: number;
|
|
185
|
+
/**
|
|
186
|
+
* PanGesture config
|
|
187
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should call the onConfigurePanGesture callback
|
|
188
|
+
*/
|
|
189
|
+
onConfigurePanGesture?: (panGesture: PanGesture) => void;
|
|
190
|
+
/**
|
|
191
|
+
* Determines the maximum number of items will respond to pan gesture events,
|
|
192
|
+
* windowSize={11} will active visible item plus up to 5 items above and 5 below the viewpor,
|
|
193
|
+
* Reducing this number will reduce the calculation of the animation value and may improve performance.
|
|
194
|
+
* @default 0 all items will respond to pan gesture events.
|
|
195
|
+
*/
|
|
196
|
+
windowSize?: number;
|
|
197
|
+
/**
|
|
198
|
+
* When true, the scroll view stops on multiples of the scroll view's size when scrolling.
|
|
199
|
+
* @default true
|
|
200
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should swipe to the next item when pagingEnabled is true
|
|
201
|
+
*/
|
|
202
|
+
pagingEnabled?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* If enabled, releasing the touch will scroll to the nearest item.
|
|
205
|
+
* valid when pagingEnabled=false
|
|
206
|
+
* @default true
|
|
207
|
+
*/
|
|
208
|
+
snapEnabled?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* If enabled, items will scroll to the first placement when scrolling past the edge rather than closing to the last. (previous conditions: loop=false)
|
|
211
|
+
* @default true
|
|
212
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should respect overscrollEnabled=false and prevent scrolling beyond bounds
|
|
213
|
+
*/
|
|
214
|
+
overscrollEnabled?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* If false, Carousel will not respond to any gestures.
|
|
217
|
+
* @default true
|
|
218
|
+
*/
|
|
219
|
+
enabled?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Specifies the scrolling animation effect.
|
|
222
|
+
*
|
|
223
|
+
* If provided, it takes precedence over `scrollAnimationDuration`.
|
|
224
|
+
*/
|
|
225
|
+
withAnimation?: WithAnimation;
|
|
226
|
+
/**
|
|
227
|
+
* Used to locate this view in end-to-end tests.
|
|
228
|
+
*/
|
|
229
|
+
testID?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Maximum offset value for once scroll.
|
|
232
|
+
* Carousel cannot scroll over than this value.
|
|
233
|
+
* */
|
|
234
|
+
maxScrollDistancePerSwipe?: number;
|
|
235
|
+
/**
|
|
236
|
+
* Minimum offset value for once scroll.
|
|
237
|
+
* If the translation value is less than this value, the carousel will not scroll.
|
|
238
|
+
* */
|
|
239
|
+
minScrollDistancePerSwipe?: number;
|
|
240
|
+
/**
|
|
241
|
+
* @experimental This API will be changed in the future.
|
|
242
|
+
* If positive, the carousel will scroll to the positive direction and vice versa.
|
|
243
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should swipe to the correct direction when fixedDirection is positive
|
|
244
|
+
* */
|
|
245
|
+
fixedDirection?: "positive" | "negative";
|
|
246
|
+
/**
|
|
247
|
+
* Custom carousel config.
|
|
248
|
+
*/
|
|
249
|
+
customConfig?: CustomConfig | (() => CustomConfig);
|
|
250
|
+
/**
|
|
251
|
+
* Custom animations.
|
|
252
|
+
* Must use `worklet`, Details: https://docs.swmansion.com/react-native-reanimated/docs/2.2.0/worklets/
|
|
253
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should apply the custom animation
|
|
254
|
+
*/
|
|
255
|
+
customAnimation?: (value: number, index: number) => ViewStyle;
|
|
256
|
+
/**
|
|
257
|
+
* Render carousel item.
|
|
258
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should render items correctly
|
|
259
|
+
*/
|
|
260
|
+
renderItem: CarouselRenderItem<T>;
|
|
261
|
+
/**
|
|
262
|
+
* Callback fired when navigating to an item.
|
|
263
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should call the onSnapToItem callback
|
|
264
|
+
*/
|
|
265
|
+
onSnapToItem?: (index: number) => void;
|
|
266
|
+
/**
|
|
267
|
+
* On scroll start
|
|
268
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should call the onScrollStart callback
|
|
269
|
+
*/
|
|
270
|
+
onScrollStart?: () => void;
|
|
271
|
+
/**
|
|
272
|
+
* On scroll end
|
|
273
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should call the onScrollEnd callback
|
|
274
|
+
*/
|
|
275
|
+
onScrollEnd?: (index: number) => void;
|
|
276
|
+
/**
|
|
277
|
+
* On progress change
|
|
278
|
+
* @param offsetProgress Total of offset distance (0 390 780 ...)
|
|
279
|
+
* @param absoluteProgress Convert to index (0 1 2 ...)
|
|
280
|
+
* @test_coverage ✅ tested in Carousel.test.tsx > should call the onProgressChange callback
|
|
281
|
+
*
|
|
282
|
+
* If you want to update a shared value automatically, you can use the shared value as a parameter directly.
|
|
283
|
+
*/
|
|
284
|
+
onProgressChange?: TOnProgressChange;
|
|
285
|
+
onLayout?: (event: LayoutChangeEvent) => void;
|
|
286
|
+
/**
|
|
287
|
+
* If enabled, releasing the touch will scroll to the nearest item.
|
|
288
|
+
* valid when pagingEnabled=false
|
|
289
|
+
* @deprecated please use snapEnabled instead
|
|
290
|
+
*/
|
|
291
|
+
enableSnap?: boolean;
|
|
292
|
+
} & (TParallaxModeProps | TStackModeProps);
|
|
293
|
+
export interface ICarouselInstance {
|
|
294
|
+
/**
|
|
295
|
+
* Scroll to previous item, it takes one optional argument (count),
|
|
296
|
+
* which allows you to specify how many items to cross
|
|
297
|
+
*/
|
|
298
|
+
prev: (opts?: Omit<TCarouselActionOptions, "index">) => void;
|
|
299
|
+
/**
|
|
300
|
+
* Scroll to next item, it takes one optional argument (count),
|
|
301
|
+
* which allows you to specify how many items to cross
|
|
302
|
+
*/
|
|
303
|
+
next: (opts?: Omit<TCarouselActionOptions, "index">) => void;
|
|
304
|
+
/**
|
|
305
|
+
* Get current item index
|
|
306
|
+
*/
|
|
307
|
+
getCurrentIndex: () => number;
|
|
308
|
+
/**
|
|
309
|
+
* Use value to scroll to a position where relative to the current position,
|
|
310
|
+
* scrollTo({count: -2}) is equivalent to prev(2), scrollTo({count: 2}) is equivalent to next(2)
|
|
311
|
+
*/
|
|
312
|
+
scrollTo: (opts?: TCarouselActionOptions) => void;
|
|
313
|
+
}
|
|
314
|
+
export interface CarouselRenderItemInfo<ItemT> {
|
|
315
|
+
item: ItemT;
|
|
316
|
+
index: number;
|
|
317
|
+
animationValue: SharedValue<number>;
|
|
318
|
+
}
|
|
319
|
+
export type CarouselRenderItem<ItemT> = (info: CarouselRenderItemInfo<ItemT>) => React.ReactElement;
|
|
320
|
+
export interface TCarouselActionOptions {
|
|
321
|
+
index?: number;
|
|
322
|
+
count?: number;
|
|
323
|
+
animated?: boolean;
|
|
324
|
+
onFinished?: () => void;
|
|
325
|
+
}
|
|
326
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function computeGestureTranslation(options: {
|
|
2
|
+
loop: boolean;
|
|
3
|
+
overscrollEnabled: boolean;
|
|
4
|
+
currentTranslation: number;
|
|
5
|
+
panOffset: number;
|
|
6
|
+
panTranslation: number;
|
|
7
|
+
max: number;
|
|
8
|
+
}): number;
|
|
9
|
+
//# sourceMappingURL=compute-gesture-translation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-gesture-translation.d.ts","sourceRoot":"","sources":["../../../src/utils/compute-gesture-translation.ts"],"names":[],"mappings":"AAAA,wBAAgB,yBAAyB,CAAC,OAAO,EAAE;IACjD,IAAI,EAAE,OAAO,CAAC;IACd,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,MAAM,CAqBT"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function omitZero(a: number, b: number): number;
|
|
2
|
+
export declare function computeOffsetIfDataChanged(params: {
|
|
3
|
+
direction: number;
|
|
4
|
+
handlerOffset: number;
|
|
5
|
+
size: number;
|
|
6
|
+
previousLength: number;
|
|
7
|
+
currentLength: number;
|
|
8
|
+
}): number;
|
|
9
|
+
//# sourceMappingURL=compute-offset-if-data-changed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-offset-if-data-changed.d.ts","sourceRoot":"","sources":["../../../src/utils/compute-offset-if-data-changed.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAK5C;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,UA8BA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-offset-if-size-changed.d.ts","sourceRoot":"","sources":["../../../src/utils/compute-offset-if-size-changed.ts"],"names":[],"mappings":"AAAA,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,UASA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Variable-size analogue of `compute-offset-if-size-changed.ts`. Given the
|
|
3
|
+
* previous and next prefix-sum tables and the current `handlerOffset`, returns
|
|
4
|
+
* a new handlerOffset such that the same logical item index stays in view.
|
|
5
|
+
*
|
|
6
|
+
* Both `prevPrefix` and `nextPrefix` must include the leading 0 sentinel, so
|
|
7
|
+
* `prefix.length === itemCount + 1` and `prefix[itemCount]` is the total span.
|
|
8
|
+
*/
|
|
9
|
+
export declare function computeOffsetIfSizesChanged(params: {
|
|
10
|
+
handlerOffset: number;
|
|
11
|
+
prevPrefix: number[];
|
|
12
|
+
nextPrefix: number[];
|
|
13
|
+
}): number;
|
|
14
|
+
//# sourceMappingURL=compute-offset-if-sizes-changed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-offset-if-sizes-changed.d.ts","sourceRoot":"","sources":["../../../src/utils/compute-offset-if-sizes-changed.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,GAAG,MAAM,CA6BT"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type BaseParams<T extends object> = {
|
|
2
|
+
autoFillData: boolean;
|
|
3
|
+
loop: boolean;
|
|
4
|
+
} & T;
|
|
5
|
+
export declare function convertToSharedIndex(params: BaseParams<{
|
|
6
|
+
index: number;
|
|
7
|
+
rawDataLength: number;
|
|
8
|
+
}>): number;
|
|
9
|
+
export declare function computedOffsetXValueWithAutoFillData(params: BaseParams<{
|
|
10
|
+
rawDataLength: number;
|
|
11
|
+
value: number;
|
|
12
|
+
size: number;
|
|
13
|
+
}>): number;
|
|
14
|
+
export declare function computedRealIndexWithAutoFillData(params: BaseParams<{
|
|
15
|
+
index: number;
|
|
16
|
+
dataLength: number;
|
|
17
|
+
}>): number;
|
|
18
|
+
export declare function computedFillDataWithAutoFillData<T>(params: BaseParams<{
|
|
19
|
+
data: T[];
|
|
20
|
+
dataLength: number;
|
|
21
|
+
}>): T[];
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=computed-with-auto-fill-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computed-with-auto-fill-data.d.ts","sourceRoot":"","sources":["../../../src/utils/computed-with-auto-fill-data.ts"],"names":[],"mappings":"AASA,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI;IAClC,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;CACf,GAAG,CAAC,CAAC;AAEN,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,UAchG;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,UAAU,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC,UAgBH;AAED,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,UAcH;AAED,wBAAgB,gCAAgC,CAAC,CAAC,EAChD,MAAM,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,GACD,CAAC,EAAE,CAaL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deal-with-animation.d.ts","sourceRoot":"","sources":["../../../src/utils/deal-with-animation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,aAAa,GAC3B,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,KAAK,MAAM,CAU9D"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SharedValue } from "react-native-reanimated";
|
|
2
|
+
import type { TCarouselProps } from "../types";
|
|
3
|
+
export declare function handlerOffsetDirection(handlerOffset: SharedValue<number>, fixedDirection?: TCarouselProps["fixedDirection"]): -1 | 1;
|
|
4
|
+
//# sourceMappingURL=handleroffset-direction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleroffset-direction.d.ts","sourceRoot":"","sources":["../../../src/utils/handleroffset-direction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,EAClC,cAAc,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,GAChD,CAAC,CAAC,GAAG,CAAC,CAUR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/utils/log.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,GAAG,CAAC,GAAG,GAAG,EAAE,GAAG,QAE9B;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,UAGnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitize-animation-style.d.ts","sourceRoot":"","sources":["../../../src/utils/sanitize-animation-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAelE"}
|