{"repo":"limintao/react-native-date-picker","free":true,"listed":false,"github":"https://github.com/limintao/react-native-date-picker","clone":"git clone https://github.com/limintao/react-native-date-picker.git","description":"适用于 Android、iOS 和 Web 的可定制 React Native Date Picker 组件。它包括单选、范围选择、wheel选择和多种模式，并支持不同的语言设置。","language":"TypeScript","stars":29,"topics":["calendar","date","datepicker","datetime","picker","react-native","wheel"],"license":"MIT","category":"mobile-apps","readme_excerpt":"--- react-native-date-picker React Native 的 DateTimePicker 组件，允许你创建一个可自定义的日期和时间选择器。该组件使用 Day.js 库，并包含一组样式属性，使你可以根据自己的 UI 设计更改日历的每一项。 安装 如果你使用Yarn 或者你使用pnpm 用法说明 欲了解更多信息，请查看 /example 目录。 Calendar props Name Type Default Description --------------- ---------- ----------------------- ----------------------------------------------------------------- mode string 'single' 定义 DatePicker 的模式 ['single', 'range', 'multiple', 'wheel'] locale string 'zh-cn' 定义 DatePicker 的语言环境，使用其他语言需要从dayjs引入语言包 minDate DateType null 定义 DatePicker 的最小可选日期 maxDate DateType null 定义 DatePicker 的最大可选日期 firstDayOfWeek number 0 定义一周的起始日，范围为 0-6，其中 0 表示星期天，6 表示星期六 displayFullDays boolean false 定义是否在当前日历视图中显示上个月和下个月的日期 initialView string 'day' 定义 DatePicker 的初始视图 ['day', 'month', 'year', 'time'] height number 'undefined' 定义日历视图的高度 format string 'YYYY/MM/DD HH:mm:ss' 设置日期格式 Single Mode props Name Type Default Description ---------- ---------- ---------------- --------------------------------- date DateType undefined 选中的日期 onChange Function ({date}) = {} 当从 DatePicker 选择新日期时调用 timePicker boolean false 定义是否显示时间选择器 Range Mode props Name Type Default Description --------- ---------- ------------------------------ ------------------------------------------ startDate DateType undefined 用于显示选定的开始日期 endDate DateType undefined 用于显示选定的结束日期 onChange Function ({startDate, endDate}) = {} 当从 DatePicker 选择新开始日期或结束日期时调用 Multiple Mode props Name Type Default Description -------- ------------ ----------------- -------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/limintao","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/limintao/react-native-date-picker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}