@nexara/nativeflow
Version:
Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.
32 lines (31 loc) • 914 B
JavaScript
import React from "react";
import { TouchableOpacity } from "react-native";
import { StyledView } from "../StyledComponents/index.js";
import { horizontalScale, moderateScale, verticalScale } from "../../helpers/ResponsiveCalculations.js";
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
const MenuItem = ({
paddingV = 11,
paddingH = 17,
gap = 12,
style,
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: moderateScale(gap),
style: style,
children: children
})
})
});
};
export default MenuItem;
//# sourceMappingURL=MenuItem.js.map
;