react-native-actions-sheet-fork
Version:
A Cross Platform (Android & iOS) ActionSheet with robust and flexible API, native performance, and zero dependency code for React Native. Forked version.
13 lines (12 loc) • 644 B
JavaScript
/* 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} bounces={false} renderScrollComponent={SheetScrollView}/>);
}
export var FlashList = React.forwardRef($FlashList);
function $MasonaryFlashList(props, ref) {
return (<SPMasonaryFlashList {...props} ref={ref} bounces={false} renderScrollComponent={SheetScrollView}/>);
}
export var MasonaryFlashList = React.forwardRef($MasonaryFlashList);