UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

47 lines (45 loc) 790 B
import { mode, getColorScheme } from '../tools'; const sizes = { 'xs': { height: 6, width: 6 }, 'sm': { height: 8, width: 8 }, 'md': { height: 16, width: 16 }, 'lg': { height: 20, width: 20 }, 'xl': { height: 24, width: 24 }, '2xl': { height: 32, width: 32 } }; const defaultProps = { thickness: 8, colorScheme: 'primary', size: 'lg' }; function baseStyle(props) { const colorScheme = getColorScheme(props); return { color: mode("".concat(colorScheme, ".600"), "".concat(colorScheme, ".500"))(props), trackColor: mode("".concat(colorScheme, ".200"), "".concat(colorScheme, ".800"))(props) }; } export default { baseStyle, sizes, defaultProps }; //# sourceMappingURL=circular-progress.js.map