Skip to content

Commit bef45c1

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

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/components/bottomSheetScrollable/BottomSheetFlashList.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
// @ts-ignore
22
import type { FlashListProps } from '@shopify/flash-list';
3-
import React, { forwardRef, memo, type Ref, useMemo } from 'react';
3+
import React, { forwardRef, memo, 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)