1
- import React , { Component , RefObject , ReactNode , Key } from 'react' ;
2
- import { ScrollView , LayoutChangeEvent , NativeSyntheticEvent , NativeScrollEvent } from 'react-native' ;
3
- import { CarouselProps , CarouselState , PageControlPosition } from './types' ;
4
- export { CarouselProps , PageControlPosition } ;
1
+ import React , { Component , RefObject , ReactNode , Key } from 'react' ;
2
+ import { ScrollView , LayoutChangeEvent , NativeSyntheticEvent , NativeScrollEvent } from 'react-native' ;
3
+ import { CarouselProps , CarouselState , PageControlPosition } from './types' ;
4
+ export { CarouselProps , PageControlPosition } ;
5
5
declare type DefaultProps = Partial < CarouselProps > ;
6
6
/**
7
7
* @description : Carousel for scrolling pages horizontally
@@ -19,6 +19,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
19
19
autoplayTimer ?: ReturnType < typeof setTimeout > ;
20
20
orientationChange ?: boolean ;
21
21
skippedInitialScroll ?: boolean ;
22
+ isAutoScrolled : boolean ;
22
23
constructor ( props : CarouselProps ) ;
23
24
static getDerivedStateFromProps ( nextProps : CarouselProps , prevState : CarouselState ) : {
24
25
pageWidth : number ;
@@ -48,7 +49,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
48
49
getSnapToOffsets : ( ) => number [ ] | undefined ;
49
50
shouldUsePageWidth ( ) : number | false | undefined ;
50
51
shouldEnablePagination ( ) : boolean | undefined ;
51
- onContainerLayout : ( { nativeEvent : { layout : { width : containerWidth , height : containerHeight } } } : LayoutChangeEvent ) => void ;
52
+ onContainerLayout : ( { nativeEvent : { layout : { width : containerWidth , height : containerHeight } } } : LayoutChangeEvent ) => void ;
52
53
shouldAllowAccessibilityLayout ( ) : boolean | undefined ;
53
54
onContentSizeChange : ( ) => void ;
54
55
onMomentumScrollEnd : ( ) => void ;
@@ -63,7 +64,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
63
64
renderCarousel ( ) : JSX . Element ;
64
65
render ( ) : JSX . Element ;
65
66
}
66
- export { Carousel } ;
67
+ export { Carousel } ;
67
68
declare const _default : React . ComponentClass < CarouselProps & {
68
69
useCustomTheme ?: boolean | undefined ;
69
70
} , any > & Carousel & {
0 commit comments