native-base
Version:
Essential cross-platform UI components for React Native
30 lines (29 loc) • 555 B
JavaScript
function baseStyle(props) {
const {
orientation,
thickness
} = props;
const orientationProps = orientation === 'vertical' ? {
width: "".concat(thickness, "px"),
// handle for web : To be discussed
height: '100%'
} : {
width: '100%',
height: "".concat(thickness, "px")
};
return {
bg: 'muted.300',
_dark: {
bg: 'muted.600'
},
...orientationProps
};
}
export default {
baseStyle,
defaultProps: {
orientation: 'horizontal',
thickness: '1'
}
};
//# sourceMappingURL=divider.js.map