import {StyleSheet} from 'react-native'; import * as defaultStyle from '../style'; import {Theme} from '../types'; export default function getStyle(theme: Theme = {}) { const appStyle = {...defaultStyle, ...theme}; return StyleSheet.create({ container: { backgroundColor: appStyle.calendarBackground, borderBottomWidth: 1, borderColor: '#E3E3E3' }, dayContainer: { flex: 1, alignItems: 'center' }, emptyDayContainer: { flex: 1 }, monthView: { backgroundColor: appStyle.calendarBackground }, week: { // marginVertical: appStyle.weekVerticalMargin, flexDirection: 'row', justifyContent: 'space-around' }, // @ts-expect-error ...(theme['stylesheet.calendar.main'] || {}) }); }