UNPKG

react-native-toggle-calendar

Version:

Horizontal as well as Grid calendar built on top of react-native-calendars

29 lines (26 loc) 697 B
import {StyleSheet} from 'react-native'; import * as defaultStyle from '../style'; const STYLESHEET_ID = 'stylesheet.calendar-list.main'; export default function getStyle(theme={}) { const appStyle = {...defaultStyle, ...theme}; return StyleSheet.create({ container: { backgroundColor: appStyle.calendarBackground }, placeholder: { backgroundColor: appStyle.calendarBackground, alignItems: 'center', justifyContent: 'center' }, placeholderText: { fontSize: 30, fontWeight: '200', color: appStyle.dayTextColor }, calendar: { paddingLeft: 15, paddingRight: 15 }, ...(theme[STYLESHEET_ID] || {}) }); }