Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

ttkien/react-native-weekday-date-picker

Repository files navigation

Summary

This is React Native modules to wrap iOS (only) Weekday date picker https://github.com/bagofstars/WeekdayDatePicker

Screen Shot 2019-11-09 at 13 50 39

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

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-weekday-date-picker and add WeekdayPicker.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libWeekdayPicker.a to your project's Build PhasesLink Binary With Libraries
  4. 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);
  }}
/>;