Skip to content

Commit

Permalink
fix: FlashList types
Browse files Browse the repository at this point in the history
  • Loading branch information
hannomargelo committed Jan 10, 2025
1 parent bf5f065 commit bef45c1
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/components/bottomSheetScrollable/BottomSheetFlashList.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// @ts-ignore
import type { FlashListProps } from '@shopify/flash-list';
import React, { forwardRef, memo, type Ref, useMemo } from 'react';
import React, { forwardRef, memo, useMemo } from 'react';
import { type ScrollViewProps, StyleSheet } from 'react-native';
import type Animated from 'react-native-reanimated';
import BottomSheetScrollView from './BottomSheetScrollView';
import type {
BottomSheetFlashListProps,
BottomSheetScrollViewMethods,
BottomSheetScrollableProps,
} from './types';

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

export type BottomSheetFlashListProps<T> = Omit<
Animated.AnimateProps<FlashListProps<T>>,
'decelerationRate' | 'scrollEventThrottle'
> &
BottomSheetScrollableProps & {
ref?: Ref<React.FC>;
};

const BottomSheetFlashListComponent = forwardRef<
React.FC,
// biome-ignore lint/suspicious/noExplicitAny: to be addressed
Expand Down

0 comments on commit bef45c1

Please sign in to comment.