react-native-calendars-monthly-view
Version:
React Native Calendar Components
38 lines (35 loc) • 864 B
JavaScript
import {StyleSheet} from 'react-native';
import * as defaultStyle from '../../style';
const STYLESHEET_ID = 'stylesheet.marking';
export default function styleConstructor(theme = {}) {
const appStyle = {...defaultStyle, ...theme};
return StyleSheet.create({
dots: {
flexDirection: 'column',
width : 50,
height : 85,
// backgroundColor : 'orange',
// borderWidth : 2,
// borderColor : 'black',
},
periods: {
alignSelf: 'stretch',
},
period: {
height: 4,
marginVertical: 1,
backgroundColor: appStyle.dotColor
},
startingDay: {
borderTopLeftRadius: 2,
borderBottomLeftRadius: 2,
marginLeft: 4
},
endingDay: {
borderTopRightRadius: 2,
borderBottomRightRadius: 2,
marginRight: 4
},
...(theme[STYLESHEET_ID] || {})
});
}