0.3.0 • Published 12 months ago

react-native-date-picker-option v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

react-native-date-picker

date-picker

Installation

npm install react-native-date-picker-option

Usage

import DateRangePicker from 'react-native-date-picker-option';
        <DateRangePicker
          timeInit={timeInit}
          {...{dateSelected, setDateSelected}}
          types="both"
        />

// ...

Prop

type: both | dateRange | flexibleDate;

  • dateRange: Có thể chọn khoảng ngày từ bao nhiêu trên lịch
  • flexibleDate: Các mốc thời gian được chọn. Ví dụ 7 ngày trước, 3 ngày trước, 1 tháng trước.
  • Đối với flexibleDate có thể dùng truyền data vào bằng prop dataFlexible
  • Data mặc đinh của dataFlexible là :
  • both: có thể kết hợp dùng 1 trong 2 trường hợp của dateRange và flexibleDate

dateSelected và setDateSelected dùng useState để kết hợp lấy data xuất và init data.

timeInit: thời gian mặc định ban đầu muốn truyền vào.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.3.0

12 months ago

0.2.0

12 months ago

0.1.0

12 months ago