UNPKG

@nexara/nativeflow

Version:

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

24 lines (23 loc) 622 B
"use strict"; import React from 'react'; import { StyledView } from "../StyledComponents/index.js"; import { useTheme } from "../../hooks/index.js"; import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; const Divider = ({ thickness = 0.2, color, style }) => { const theme = useTheme(); const dynamicStyles = { borderWidth: thickness, borderColor: color ?? theme?.colors.dividerColor }; return /*#__PURE__*/_jsx(_Fragment, { children: /*#__PURE__*/_jsx(StyledView, { style: [dynamicStyles, style] }) }); }; export default Divider; //# sourceMappingURL=Divider.js.map