UNPKG

react-native-calendars-jalaali

Version:
30 lines (26 loc) 712 B
import {StyleSheet} from 'react-native'; import * as defaultStyle from '../style'; const STYLESHEET_ID = 'stylesheet.calendar.main'; export default function getStyle(theme={}, isJalaali = false) { const appStyle = {...defaultStyle, ...theme}; return StyleSheet.create({ container: { paddingLeft: 5, paddingRight: 5, backgroundColor: appStyle.calendarBackground }, monthView: { backgroundColor: appStyle.calendarBackground }, week: { marginTop: 7, marginBottom: 7, flexDirection: isJalaali? 'row-reverse': 'row', justifyContent: 'space-around' }, dayContainer: { width: 32 }, ...(theme[STYLESHEET_ID] || {}) }); }