Skip to main content

Theme


Interface

export interface Theme {
style?: StyleProp<ViewStyle>;
containerStyle?: StyleProp<ViewStyle>;
dayContainerStyle?: StyleProp<ViewStyle>;
daySelectedStyle?: StyleProp<ViewStyle>;
dayNumberStyle?: StyleProp<ViewStyle>;
dayNumberTextStyle?: StyleProp<TextStyle>;
dayTodayStyle?: StyleProp<ViewStyle>;
dayTodayTextStyle?: StyleProp<TextStyle>;
dayItemStyle?: StyleProp<ViewStyle>;
dayItemTextStyle?: StyleProp<TextStyle>;
itemStartMargin?: number;
itemStartBorderRadius?: number;
itemEndMargin?: number;
itemEndBorderRadius?: number;
dayTextForamt?: string;
disableOpacity?: number;
headerStyle?: StyleProp<ViewStyle>;
headerTextStyle?: StyleProp<TextStyle>;
headerDateFormat?: string;
dayLabelDateFormat?: string;
}

Properties

PropertyTypeDefault valueDescription
style?StyleProp<ViewStyle>The style for the main calendar container.
containerStyle?StyleProp<ViewStyle>The style for the overall container of the calendar.
dayContainerStyle?StyleProp<ViewStyle>The style for the container of each day.
dayItemStyle?StyleProp<ViewStyle>The style for the container of day items (events).
dayItemTextStyle?StyleProp<TextStyle>The style for the text of day items (events).
dayLabelDateFormat?stringeeeeeeThe date format used for the day label.
dayNumberStyle?StyleProp<ViewStyle>The style for the container of the day number.
dayNumberTextStyle?StyleProp<TextStyle>The style for the text of the day number.
daySelectedStyle?StyleProp<ViewStyle>{ backgroundColor: 'rgb(216, 216, 216)' }The style for the selected day.
dayTextForamt?stringdThe format used for day text.
dayTodayStyle?StyleProp<ViewStyle>{ backgroundColor: 'purple', borderRadius: 20 }The style for the container of today's day.
dayTodayTextStyle?StyleProp<TextStyle>{ color: 'white' }The style for the text of today's day.
disableOpacity?number0.2The opacity when the date is disabled.
headerDateFormat?stringMMMM yyyyThe date format used in the header.
headerStyle?StyleProp<ViewStyle>The style for the container of header.
headerTextStyle?StyleProp<TextStyle>The style for the text of header.
itemEndBorderRadius?number4The border radius for the ending item (event).
itemEndMargin?number2The margin for the ending item (event).
itemStartBorderRadius?number4The border radius for the starting item (event).
itemStartMargin?number2The margin for the starting item (event).