import { StyleSheet, TextStyle, ViewStyle } from 'react-native'; import constants from '../utils/constants'; interface HeadStyle { header: ViewStyle; headerTitle: TextStyle; headerSubTitle: TextStyle; headerTitleWrap: ViewStyle; weekday: TextStyle; } export const createHeaderStyle = (theme: DiceUI.Theme): StyleSheet.NamedStyles => { return StyleSheet.create({ header: { shadowColor: 'rgba(125, 126, 128, 0.16)', shadowOffset: { width: 0, height: 2, }, shadowOpacity: 1, shadowRadius: 10, }, headerSubTitle: { fontSize: theme.calendar_header_subtitle_font_size, }, headerTitle: { color: theme.text_color, fontSize: theme.calendar_header_title_font_size, fontWeight: theme.font_weight_bold, lineHeight: theme.calendar_header_title_height, }, headerTitleWrap: { alignItems: 'center', flexDirection: 'row', height: theme.calendar_header_title_height, justifyContent: 'center', }, weekday: { flex: 1, fontSize: theme.calendar_weekdays_font_size, lineHeight: theme.calendar_weekdays_height, textAlign: 'center', }, }); }; interface Style { footer: ViewStyle; footerButton: ViewStyle; calendar: ViewStyle; body: ViewStyle; popup: ViewStyle; } export const createStyle = (theme: DiceUI.Theme): StyleSheet.NamedStyles