UNPKG

zy-react-native-calendars

Version:
33 lines (30 loc) 786 B
import {StyleSheet} from 'react-native'; import * as defaultStyle from '../../style'; const STYLESHEET_ID = 'stylesheet.dot'; export default function styleConstructor(theme={}) { const appStyle = {...defaultStyle, ...theme}; return StyleSheet.create({ dot: { width: 4, height: 4, marginTop: 1, borderRadius: 2, opacity: 0, ...appStyle.dotStyle }, visibleDot: { opacity: 1, backgroundColor: appStyle.dotColor }, selectedDot: { backgroundColor: appStyle.selectedDotColor }, disabledDot: { backgroundColor: appStyle.disabledDotColor || appStyle.dotColor }, todayDot: { backgroundColor: appStyle.todayDotColor || appStyle.dotColor }, ...(theme[STYLESHEET_ID] || {}) }); }