UNPKG

react-native-actions-sheet

Version:

A Cross Platform(Android & iOS) ActionSheet with a robust and flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.

13 lines (12 loc) 612 B
/* eslint-disable curly */ import { FlashList as SPFlashList, MasonryFlashList as SPMasonaryFlashList, } from '@shopify/flash-list'; import React from 'react'; import { ScrollView as SheetScrollView } from './ScrollView'; function $FlashList(props, ref) { return (<SPFlashList {...props} ref={ref} renderScrollComponent={SheetScrollView}/>); } export var FlashList = React.forwardRef($FlashList); function $MasonaryFlashList(props, ref) { return (<SPMasonaryFlashList {...props} ref={ref} renderScrollComponent={SheetScrollView}/>); } export var MasonaryFlashList = React.forwardRef($MasonaryFlashList);