UNPKG

react-native-lunar-calendars

Version:

React Native Calendar Components with Lunar Calendar Support - Fork of react-native-calendars with Vietnamese lunar calendar functionality

57 lines (54 loc) 1.42 kB
import { StyleSheet, Platform } from 'react-native'; import * as defaultStyle from '../../style'; const STYLESHEET_ID = 'stylesheet.calendar.header'; export default function (theme = {}) { const appStyle = { ...defaultStyle, ...theme }; return StyleSheet.create({ header: { flexDirection: 'row', justifyContent: 'space-between', paddingLeft: 10, paddingRight: 10, alignItems: 'center', }, monthText: { fontSize: appStyle.textMonthFontSize, fontFamily: appStyle.textMonthFontFamily, fontWeight: appStyle.textMonthFontWeight, color: appStyle.monthTextColor, }, arrow: { // borderRadius: 5, // borderWidth: 1, // borderColor: '#fff', marginTop: 10, justifyContent: 'center', alignItems: 'center' }, arrowImage: { ...Platform.select({ ios: { tintColor: appStyle.arrowColor }, android: { tintColor: appStyle.arrowColor } }) }, week: { marginTop: 7, flexDirection: 'row', justifyContent: 'space-around' }, dayHeader: { marginTop: 2, marginBottom: 7, width: 32, textAlign: 'center', fontSize: appStyle.textDayHeaderFontSize, fontFamily: appStyle.textDayHeaderFontFamily, color: appStyle.textSectionTitleColor, }, ...(theme[STYLESHEET_ID] || {}) }); }