UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

29 lines (27 loc) 575 B
import { mode } from '../tools'; 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: mode('coolGray.200', 'gray.600')(props), ...orientationProps }; } export default { baseStyle, defaultProps: { orientation: 'horizontal', thickness: '1' } }; //# sourceMappingURL=divider.js.map