Skip to content

Commit ecc4b48

Browse files
ethansharM-i-k-e-l
authored andcommitted
Fix timer typing in Carousel
(cherry picked from commit 5dd7cb6)
1 parent c8f39b3 commit ecc4b48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generatedTypes/components/carousel/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
1616
static defaultProps: DefaultProps;
1717
static pageControlPositions: typeof PageControlPosition;
1818
carousel: RefObject<ScrollView>;
19-
autoplayTimer?: number;
19+
autoplayTimer?: ReturnType<typeof setTimeout>;
2020
orientationChange?: boolean;
2121
skippedInitialScroll?: boolean;
2222
constructor(props: CarouselProps);

src/components/carousel/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Carousel extends Component<CarouselProps, CarouselState> {
3333

3434
static pageControlPositions = PageControlPosition;
3535
carousel: RefObject<ScrollView> = React.createRef();
36-
autoplayTimer?: number;
36+
autoplayTimer?: ReturnType<typeof setTimeout>;
3737
orientationChange?: boolean;
3838
skippedInitialScroll?: boolean;
3939

0 commit comments

Comments
 (0)