react-native-calendars
Version:
React Native Calendar Components
41 lines (40 loc) • 1.16 kB
JavaScript
import { StyleSheet } from 'react-native';
import * as defaultStyle from '../../style';
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.agenda.list'] || {})
});
}