UNPKG

react-native-calendars

Version:
29 lines (28 loc) 823 B
import { StyleSheet } from 'react-native'; import * as defaultStyle from '../style'; export default function getStyle(theme = {}) { const appStyle = { ...defaultStyle, ...theme }; return StyleSheet.create({ container: { paddingLeft: 5, paddingRight: 5, backgroundColor: appStyle.calendarBackground }, dayContainer: { flex: 1, alignItems: 'center' }, emptyDayContainer: { flex: 1 }, monthView: { backgroundColor: appStyle.calendarBackground }, week: { marginVertical: appStyle.weekVerticalMargin, flexDirection: 'row', justifyContent: 'space-around' }, ...(theme['stylesheet.calendar.main'] || {}) }); }