0.5.0 (2021-10-20)
Breaking changes
- locale prop is now required on Date related things (the time picker is still automatic)
<DatePickerModal
+ locale="en" // this is added
mode="single"
visible={open}
onDismiss={onDismissSingle}
date={date}
onConfirm={onConfirmSingle}
- you have to import your locale strings, more info -> README.md#import-some-localized-strings
e.g.
// e.g in your index.js
import {
en,
// nl,
registerTranslation,
} from 'react-native-paper-dates'
registerTranslation('en', en)
// registerTranslation('nl', nl)
Bug Fixes
- fix bug with date picker input not filling width ios (1aa9622)
- timepicker: selecting 12pm returns 24 hrs (96ab103)
- linter fixes (d18ed51)
- Modify logic to lighten and darken colors (93daecd)
Features
- add date picker input (d91abd8)
- add more docs (067d78d)
- add more translations (9d69bd4)
- require locale (4ef7869)
What's Changed
- fix: Modify logic to lighten and darken colors by @chakrihacker in #95
- fix(timepicker): selecting 12pm returns 24 hrs by @J3j3m in #110
- Introduce disabled dates prop. by @iM-GeeKy in #109
New Contributors
Full Changelog: v0.4.6...v0.5.0