react-native-calendar
A <Calendar>
component for React Native
Portrait mode only
Installation
npm install react-native-calendar-bbcloud --save
Usage
<Calendar
scrollEnabled={true}
showControls={true}
titleFormat={'MMMM YYYY'}
dayHeadings={Array}
monthNames={Array}
prevButtonText={'Prev'}
nextButtonText={'Next'}
onDateSelect={(date) => this.onDateSelect(date)}
onTouchPrev={this.onTouchPrev}
onTouchNext={this.onTouchNext}
onSwipePrev={this.onSwipePrev}
onSwipeNext={this.onSwipeNext}
eventDates={['2015-07-01']}
today={'2016-16-05'}
startDate={'2015-08-01'}
selectedDate={'2015-08-15'}
customStyle={{day: {fontSize: 15, textAlign: 'center'}}}
weekStart={1}
list={['2016-8-15', '2016-8-16', '2016-8-17']}
showTitle={false}
/>
Available custom styles
- calendarContainer
- monthContainer
- calendarControls
- controlButton
- controlButtonText
- title
- calendarHeading
- dayHeading
- weekendHeading
- weekRow
- dayButton
- dayButtonFiller
- day
- eventIndicatorFiller
- eventIndicator
- dayCircleFiller
- currentDayCircle
- currentDayText
- selectedDayCircle
- selectedDayText
- weekendDayText
- hasEventCircle
- hasEventText
TODOS
DEMO