Skip to content

Commit fbcc345

Browse files
committed
fix: lint error
1 parent d56ec80 commit fbcc345

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/components/Attachments/AttachmentCarousel/AttachmentCarouselView

src/components/Attachments/AttachmentCarousel/AttachmentCarouselView/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
2-
import type {MutableRefObject} from 'react';
2+
import type {RefObject} from 'react';
33
import type {ListRenderItemInfo} from 'react-native';
44
import {Keyboard, PixelRatio, View} from 'react-native';
55
import {Gesture, GestureDetector} from 'react-native-gesture-handler';
@@ -216,7 +216,7 @@ function AttachmentCarouselView({
216216
scrollTo(scrollRef, newIndex * cellWidth, 0, true);
217217
})
218218
// eslint-disable-next-line react-compiler/react-compiler
219-
.withRef(pagerRef as MutableRefObject<GestureType | undefined>),
219+
.withRef(pagerRef as RefObject<GestureType | undefined>),
220220
[attachments.length, canUseTouchScreen, cellWidth, page, isScrollEnabled, scrollRef, isPagerScrolling],
221221
);
222222

0 commit comments

Comments
 (0)