Skip to content

Commit e561b90

Browse files
committed
fix: FlashList types
1 parent bf5f065 commit e561b90

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/components/bottomSheetScrollable/BottomSheetFlashList.tsx

+1-10
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
import type { FlashListProps } from '@shopify/flash-list';
33
import React, { forwardRef, memo, type Ref, useMemo } from 'react';
44
import { type ScrollViewProps, StyleSheet } from 'react-native';
5-
import type Animated from 'react-native-reanimated';
65
import BottomSheetScrollView from './BottomSheetScrollView';
76
import type {
7+
BottomSheetFlashListProps,
88
BottomSheetScrollViewMethods,
9-
BottomSheetScrollableProps,
109
} from './types';
1110

1211
let FlashList: {
@@ -18,14 +17,6 @@ try {
1817
FlashList = require('@shopify/flash-list') as never;
1918
} catch (_) {}
2019

21-
export type BottomSheetFlashListProps<T> = Omit<
22-
Animated.AnimateProps<FlashListProps<T>>,
23-
'decelerationRate' | 'scrollEventThrottle'
24-
> &
25-
BottomSheetScrollableProps & {
26-
ref?: Ref<React.FC>;
27-
};
28-
2920
const BottomSheetFlashListComponent = forwardRef<
3021
React.FC,
3122
// biome-ignore lint/suspicious/noExplicitAny: to be addressed

0 commit comments

Comments
 (0)