react-native-weekday-date-picker
v1.0.1
Published
Date picker with weekday components
Downloads
2
Readme
Summary
This is React Native modules to wrap iOS (only) Weekday date picker https://github.com/bagofstars/WeekdayDatePicker
Installation
Using npm:
npm install --save react-native-weekday-date-picker
or using yarn:
yarn add react-native-weekday-date-picker
If you are using RN < 0.60.0
Automatically linking
react-native link react-native-weekday-date-picker
Manual linking
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-weekday-date-picker
and addWeekdayPicker.xcodeproj
- In XCode, in the project navigator, select your project. Add
libWeekdayPicker.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)
Usage
import DatePicker from 'react-native-weekday-date-picker';
<DatePicker
style={{ flex: 1 }}
date={dateValue}
minimumDate={minDate}
maximumDate={maxDate}
onDateChange={selectedDate => {
setDateValue(selectedDate);
}}
/>;