react-native-calendars
Version:
React Native Calendar Components
37 lines (36 loc) • 1.09 kB
JavaScript
import { Platform, StyleSheet } from 'react-native';
import * as defaultStyle from '../style';
export default function getStyle(theme = {}) {
const appStyle = { ...defaultStyle, ...theme };
return StyleSheet.create({
flatListContainer: {
flex: Platform.OS === 'web' ? 1 : undefined
},
container: {
backgroundColor: appStyle.calendarBackground
},
placeholder: {
backgroundColor: appStyle.calendarBackground,
alignItems: 'center',
justifyContent: 'center'
},
placeholderText: {
fontSize: 20,
fontWeight: '200',
color: appStyle.dayTextColor
},
calendar: {
paddingLeft: 15,
paddingRight: 15
},
staticHeader: {
position: 'absolute',
left: 0,
right: 0,
top: 0,
backgroundColor: appStyle.calendarBackground,
paddingHorizontal: 15
},
...(theme['stylesheet.calendar-list.main'] || {})
});
}