25 lines
1.1 KiB
React
25 lines
1.1 KiB
React
// Metro module 5410 (f5411).
|
|
import { forwardRef, useMemo, memo } from "react";
|
|
import * as _Module5411 from "./Module5411";
|
|
import BottomSheetScrollView from "./BottomSheetScrollView";
|
|
let Component;
|
|
const _excluded = ["focusHook", "scrollEventsHandlersHook", "enableFooterMarginAdjustment"];
|
|
try {
|
|
Component = _Module5411;
|
|
} catch ($e) {}
|
|
const r30 = memo(forwardRef(({ focusHook, scrollEventsHandlersHook, enableFooterMarginAdjustment, ...rest }, a1) => {
|
|
useMemo(() => {
|
|
if (Component) {
|
|
return void 0;
|
|
}
|
|
throw "You need to install FlashList first, `yarn install @shopify/flash-list`";
|
|
}, []);
|
|
return <Component.FlashList ref={a1} renderScrollComponent={useMemo(() => forwardRef((a0, a1) => {
|
|
a0.data;
|
|
const { data, ...rest } = a0;
|
|
return <BottomSheetScrollView ref={a1} {...rest} focusHook={focusHook} scrollEventsHandlersHook={scrollEventsHandlersHook} enableFooterMarginAdjustment={enableFooterMarginAdjustment} />;
|
|
}), [focusHook, scrollEventsHandlersHook, enableFooterMarginAdjustment])} {...rest} />;
|
|
}));
|
|
export default r30;
|
|
export { r30 as BottomSheetFlashList };
|