react-native-calendars-monthly-view
Version:
React Native Calendar Components
37 lines (33 loc) • 867 B
JavaScript
import {StyleSheet} from 'react-native';
import { Colors } from 'react-native/Libraries/NewAppScreen';
import * as defaultStyle from '../style';
const STYLESHEET_ID = 'stylesheet.calendar.main';
export default function getStyle(theme = {}) {
const appStyle = {...defaultStyle, ...theme};
return StyleSheet.create({
container: {
paddingLeft: 5,
paddingRight: 5,
backgroundColor: appStyle.calendarBackground
},
dayContainer: {
flex: 1,
alignItems: 'center',
// borderWidth : 2,
// borderColor : 'pink'
},
emptyDayContainer: {
flex: 1,
},
monthView: {
backgroundColor: appStyle.calendarBackground
},
week: {
marginTop: 7,
marginBottom: 7,
flexDirection: 'row',
justifyContent: 'space-around'
},
...(theme[STYLESHEET_ID] || {})
});
}