- add support to style calendar cells based on cell date #610
- Deleted deprecated interfaces. Instead, use
ICalendarEventBase & T
ICalendarEvent<T>
DayJSConvertedEvent
Event
evenCellBg
andoddCellBg
is deleted in favor ofcalendarCellStyle
function. To migrate:
Before
<Calendar theme={{ evenCellBg: '#aaa', oddCellBg: '#bbb' }} />
After
<Calendar
calendarCellStyle={(date, index) => ({
backgroundColor: index % 2 === 0 ? "#aaa" : "#bbb",
})}
/>
- @TechSaq made their first contribution in acro5piano#610
- fix Multiple day event in Month view onPressEvent is just working on first day and not on remaining days #578
- show All day events on the month view by @acro5piano in acro5piano#576
- set onPressEvent handler to all day events by @acro5piano in acro5piano#576
ICalendarEvent
has been deprecated. To do convert this, please rewrite like this:
Before:
import { ICalendarEvent } from 'react-native-big-calendar'
type MyEvent = ICalendarEvent<{ color: string }>
import { ICalendarEventBase } from 'react-native-big-calendar'
type MyEvent = ICalendarEvent & { color: string }
Full Changelog: https://github.com/acro5piano/react-native-big-calendar/compare/v2.8.0...v2.9.0
- add an option to hide allDayEvent cell by @titanve in acro5piano#571
- Bump eslint-plugin-import from 2.23.4 to 2.25.3 by @dependabot in acro5piano#559
- Bump @types/node from 16.11.6 to 16.11.12 by @dependabot in acro5piano#570
- Update package.json for issue 568 by @lorenzogatti in acro5piano#569
- Add stying for the Hours by @titanve in acro5piano#567
- @lorenzogatti made their first contribution in acro5piano#569
- Bump lint-staged from 11.2.6 to 12.1.2 by @dependabot in acro5piano#561
- Bump eslint-plugin-react-hooks from 4.2.0 to 4.3.0 by @dependabot in acro5piano#556
- Bump prettier from 2.4.1 to 2.5.1 by @dependabot in acro5piano#566
- Bump eslint-plugin-react from 7.26.1 to 7.27.1 by @dependabot in acro5piano#562
- Bump @types/jest from 27.0.2 to 27.0.3 by @dependabot in acro5piano#558
- Bump typescript from 4.4.3 to 4.5.2 by @dependabot in acro5piano#557
- Bump merge-anything from 4.0.1 to 4.0.2 by @dependabot in acro5piano#554
- Header content style by @titanve in acro5piano#552
- Add rows background Color #548
New contributor: @titanve
- Add option for Hour Row Height #549
- add active date props to header #544
- Make month event min height customizable and fix for custom events #534
- Update deps
- Support event spanning on month mode #495
- Update deps
This is a release candidate for v2.0.0.
- Make header injectable #473
- Make header for month view injectable #473
- (breaking) Enable to inject styles for header and body separately #409
- Add theme functionality. A lot of people are requesting additional customization feature, so provided the customization option. #243 #93
export interface ThemeInterface {
palette: {
primary: Palette
nowIndicator: string
gray: {
100: string
200: string
300: string
500: string
800: string
}
}
isRTL: boolean
typography: {
fontFamily?: string
xs: Typography
sm: Typography
xl: Typography
}
eventCellOverlappings: readonly Palette[]
}
- Show AM/PM format event #445
- Fix Android start/end property and month view style
- Fix Android css #486
- Update deps
- Removed
style
prop as it is ambigious
For more details, see #475 #486
- Exported CalendarBody component #474
- [hotfix] Fix css properties on platform native #470
- Add
key
prop for month view components #470 - Improve Demo app usability #470
- Fix the month view for the mobile #466
- Kind error message for invalid mode #466
- Fixes the issue where the change from day to week view would display the wrong week when the startOfWeek is not the default #438
- Update deps
We're excited to announce the first stable version! It contains lots of bug fixes, and new mode "month".
- Add month view #410
- Fix warning android timer #414
- Fix Events spanning multiple days not rendering correct #416
- Replace tslint with eslint #415
- Fix bugs on wrong React hooks implementation
- Breaking: Remove eventRenderer and add custom render function capability #408
If you use event.eventRenderer
, you should mmove the code to the <Calendar />
component.
Before:
<Calendar
events={[
{
// ...
eventRenderer?: () => <TouchableOpacity /* ... */ />
},
]}
/>
After:
<Calendar
events=[
{
// ...
},
]
eventRenderer: () => <TouchableOpacity /* ... */ />
/>
Details: acro5piano#408
- Do not use
setInterval
ifhideNowIndicator
is specified by @acro5piano
- Fix bumping version. I'm too sleepy!
- New mode,
custom
which enables to specify week start and end date at the same time by @RajRohitYadav on #382
- Added contentOffset for iOS to avoid initial scroll for
scrollOffsetMinutes
. @RajRohitYadav
- Add default export for supporting both style by @sebastienfi
- Internal refactoring by @sebastienfi
- Add custom renderer for events by @sebastienfi
- Double checking that object exists before calling scrollTo method upon it by @filipearena
- Update deps by @acro5piano
- Fix Android scrolling issue by adding
nestedScrollEnabled
by @acro5piano and @deepakmehra96
- Fix type of event callback function by @acro5piano
- Extract function from
React.memo
to show proper display name by @acro5piano - Update deps by @acro5piano
- Update deps by @acro5piano
- Fixes an issue with displaying events that occur at midnight by @OffensivelyBad
- Fix modeToNum in utils by @huikaihoo
- Update deps by @acro5piano
- RTL support by @Gilad-Shnoor
- Update deps by @acro5piano
- Add option to hide the nowIndicator by @OffensivelyBad
- Update deps by @acro5piano
- Support for overlapping events, ability to display child components in events by @OffensivelyBad
- update deps by @acro5piano
- fix
day
mode by @joelbarron - update deps by @acro5piano
- add onPressCell props by @acro5piano
- Fix to overlapped header 74db874 by @oportojca
- Fix #85 by @acro5piano
- Fix adding
key
by @acro5piano - Remove
lib
for React Native env by @acro5piano
- Fix #85 by @acro5piano
- Fix adding
key
by @acro5piano - Remove
lib
for React Native env by @acro5piano
- Add
onPressDateHeader
props by @oportojca
- Add
delayPressIn
props by @acro5piano
- First stable release by @acro5piano