zy-react-native-calendars
Version:
React Native Calendar Components
33 lines (30 loc) • 786 B
JavaScript
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] || {})
});
}