UNPKG

locals-react-native-calendars

Version:
36 lines (33 loc) 817 B
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' }, dayNum: { fontSize: 28, fontWeight: '200', color: appStyle.agendaDayNumColor }, dayText: { fontSize: 14, fontWeight: '300', color: appStyle.agendaDayTextColor, marginTop: -5, backgroundColor: 'rgba(0,0,0,0)' }, day: { width: 63, alignItems: 'center', justifyContent: 'flex-start', marginTop: 32 }, today: { color: appStyle.agendaTodayColor }, ...(theme[STYLESHEET_ID] || {}) }); }