Last active
March 16, 2023 10:35
-
-
Save jittuu/bbcc5021d5ad9b01921c3c6f7c4cb1b7 to your computer and use it in GitHub Desktop.
BottomSheetFlashList
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {BottomSheetScrollView} from '@gorhom/bottom-sheet'; | |
import {FlashList, FlashListProps} from '@shopify/flash-list'; | |
type Props<T> = Omit<FlashListProps<T>, 'renderScrollComponent'>; | |
const BottomSheetFlashList = <T,>(props: Props<T>) => { | |
return ( | |
<FlashList<T> | |
{...props} | |
renderScrollComponent={BottomSheetScrollView as any} | |
/> | |
); | |
}; | |
export default BottomSheetFlashList; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage