UNPKG

@crossed/ui

Version:

A universal & performant styling library for React Native, Next.js & React

14 lines (13 loc) 507 B
import { jsx } from "react/jsx-runtime"; import { memo, useContext } from "react"; import { ScrollView as RNScrollView } from "react-native"; import { localContext } from "./context"; import { Sheet } from "../Sheet"; const ModalScrollView = memo((props) => { const { showSheet } = useContext(localContext); return showSheet ? /* @__PURE__ */ jsx(Sheet.ScrollView, { ...props }) : /* @__PURE__ */ jsx(RNScrollView, { ...props }); }); export { ModalScrollView }; //# sourceMappingURL=ScrollView.js.map