UNPKG

@crossed/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.

41 lines (40 loc) 846 B
import { jsx } from "react/jsx-runtime"; 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 /* @__PURE__ */ jsx( SPFlashList, { ...props, ref, bounces: false, renderScrollComponent: SheetScrollView } ); } const FlashList = React.forwardRef( $FlashList ); function $MasonaryFlashList(props, ref) { return /* @__PURE__ */ jsx( SPMasonaryFlashList, { ...props, ref, bounces: false, renderScrollComponent: SheetScrollView } ); } const MasonaryFlashList = React.forwardRef( $MasonaryFlashList ); export { FlashList, MasonaryFlashList }; //# sourceMappingURL=FlashList.js.map