Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ interface CalendarStripProps {
headerText?: string;

ref?: RefObject<any>;

datesStripStyle?: StyleProp<ViewStyle>;
}

export default class ReactNativeCalendarStrip extends Component<CalendarStripProps> {
Expand Down
52 changes: 32 additions & 20 deletions src/Calendar.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,37 @@ import { StyleSheet } from "react-native";
export default StyleSheet.create({
//CALENDAR STYLES
calendarContainer: {
overflow: "hidden"
overflow: "hidden",
},
datesStrip: {
flexDirection: "row",
flex: 1,
alignItems: "center",
justifyContent: "space-between"
justifyContent: "space-between",
},
headerContainer: {
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
},
calendarDates: {
flex: 1,
flexDirection: "row",
justifyContent: "center",
alignItems: "center"
alignItems: "center",
},
calendarHeader: {
textAlign: "center",
fontWeight: "bold",
alignSelf: "center"
alignSelf: "center",
},
iconContainer: {
justifyContent: "center",
alignItems: "center",
alignSelf: "center"
alignSelf: "center",
},
icon: {
resizeMode: "contain"
resizeMode: "contain",
},

//CALENDAR DAY
Expand All @@ -42,60 +47,67 @@ export default StyleSheet.create({
dateContainer: {
justifyContent: "center",
alignItems: "center",
alignSelf: "center"
alignSelf: "center",
backgroundColor: "#E7EBFB",
borderRadius: 8,
borderWidth: 1,
borderColor: "#E7EBFB",
paddingHorizontal: 4,
paddingVertical: 6,
},
dateName: {
textAlign: "center"
textAlign: "center",
},
weekendDateName: {
color: "#A7A7A7",
textAlign: "center"
textAlign: "center",
},
dateNumber: {
fontWeight: "bold",
textAlign: "center"
textAlign: "center",
paddingTop: 6,
},
weekendDateNumber: {
color: "#A7A7A7",
fontWeight: "bold",
textAlign: "center"
textAlign: "center",
},
dot: {
width: 6,
height: 6,
marginTop: 1,
borderRadius: 5,
opacity: 0
opacity: 0,
},

// CALENDAR DOTS
dotsContainer: {
flexDirection: 'row',
justifyContent: 'center'
flexDirection: "row",
justifyContent: "center",
},
visibleDot: {
opacity: 1,
backgroundColor: 'blue'
backgroundColor: "blue",
},
selectedDot: {
backgroundColor: 'blue'
backgroundColor: "blue",
},

// Calendar Lines
line: {
height: 4,
marginTop: 3,
borderRadius: 1,
opacity: 0
opacity: 0,
},
linesContainer: {
justifyContent: 'center'
justifyContent: "center",
},
visibleLine: {
opacity: 1,
backgroundColor: 'blue'
backgroundColor: "blue",
},
selectedLine: {
backgroundColor: 'blue'
backgroundColor: "blue",
},
});
Loading