UNPKG

@nexara/nativeflow

Version:

Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.

31 lines (30 loc) 882 B
"use strict"; import { TouchableOpacity } from "react-native"; import { StyledView } from "../StyledComponents/index.js"; import { horizontalScale, verticalScale } from "../../helpers/ResponsiveCalculations.js"; import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; const MenuItem = ({ paddingV = 11, paddingH = 17, gap = 12, itemStyle, children, ...rest }) => { return /*#__PURE__*/_jsx(_Fragment, { children: /*#__PURE__*/_jsx(TouchableOpacity, { ...rest, children: /*#__PURE__*/_jsx(StyledView, { paddingHorizontal: horizontalScale(paddingH), paddingVertical: verticalScale(paddingV), flexDirection: "row", align: "center", gap: horizontalScale(gap), style: itemStyle, children: children }) }) }); }; export default MenuItem; //# sourceMappingURL=MenuItem.js.map