UNPKG

react-native-calendars-monthly-view

Version:
44 lines (41 loc) 1.02 kB
import {StyleSheet} from 'react-native'; import * as defaultStyle from '../../style'; const STYLESHEET_ID = 'stylesheet.agenda.list'; export default function styleConstructor(theme = {}) { const appStyle = {...defaultStyle, ...theme}; return StyleSheet.create({ container: { flexDirection: 'row' }, innerContainer: { flex: 1 }, dayNum: { fontSize: 28, fontWeight: '200', fontFamily: appStyle.textDayFontFamily, color: appStyle.agendaDayNumColor }, dayText: { fontSize: 14, fontWeight: appStyle.textDayFontWeight, fontFamily: appStyle.textDayFontFamily, color: appStyle.agendaDayTextColor, backgroundColor: 'rgba(0,0,0,0)', marginTop: -5 }, day: { width: 63, alignItems: 'center', justifyContent: 'flex-start', marginTop: 32 }, today: { color: appStyle.agendaTodayColor }, indicator: { marginTop: 80 }, ...(theme[STYLESHEET_ID] || {}) }); }