react-native-wheel-picker-android
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -8,3 +8,4 @@ /** | ||
import TimePicker from './src/TimePicker' | ||
import DatePicker from './src/DatePicker' | ||
export { WheelPicker, TimePicker } | ||
export { WheelPicker, TimePicker, DatePicker } |
{ | ||
"name": "react-native-wheel-picker-android", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Simple Wheel Picker for Android to use with react-native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,3 +21,3 @@ # ReactNativeWheelPicker WIP V2 | ||
import { WheelPicker, TimePicker } from 'react-native-wheel-picker-android' | ||
import { WheelPicker, TimePicker, DatePicker } from 'react-native-wheel-picker-android' | ||
import React, { Component } from 'react'; | ||
@@ -80,3 +80,3 @@ import { | ||
| indicatorColor | black | `string` | Indicator color | | ||
| hideIndicator | - | `func` | Hide indicator | | ||
| hideIndicator | - | `boolean` | Hide indicator | | ||
| indicatorWidth | 1 | `number` | Indicator width | | ||
@@ -108,5 +108,37 @@ | backgroundColor | transparent | `string` | Wheel Picker background color | | ||
# Date Picker | ||
For IOs DatePickerIOS is used | ||
![](./src/assets/datePickerAndroid.gif) | ||
![](./src/assets/datePickerIos.gif) | ||
```js | ||
onDateSelected = date => {} | ||
... | ||
<DatePicker onDateSelected={this.onDateSelected}/> | ||
``` | ||
## Props | ||
| Prop | Default | Type | Description | | ||
| :------------ |:---------------:| :---------------:| :-----| | ||
| [DatePickerIOS props](https://facebook.github.io/react-native/docs/datepickerios#props) | - | - | All DatePickerIOS props (IOS only) | | ||
| initDate | current date | `Date` | Initial date | | ||
| onDateSelected | - | `func` | Callback with selected date | | ||
| days | [1,2,3,4...] | `Array<string>` | Custom days array (Android only) | | ||
| hours | [1,2,3,4...] | `Array<string>` | Custom hours array (Android only) | | ||
| minutes | [00,05,10,15...] | `Array<string>` | Custom minutes array (Android only) | | ||
| format24 | false | `boolean` | Time format (Android only) | | ||
| startDate | current date | `Date` | Min Date (Android only) | | ||
| daysCount | 365 | `number` | Days count to display from start date (Android only) | | ||
| hideDate | false | `boolean` | Hide days picker (Android only) | | ||
| hideHours | false | `boolean` | Hide hours picker (Android only) | | ||
| hideMinutes | false | `boolean` | Hide minutes picker (Android only) | | ||
| hideAM | false | `boolean` | Hide time format picker (Android only) | | ||
## Questions or suggestions? | ||
Feel free to [open an issue](https://github.com/ElekenAgency/ReactNativeWheelPicker/issues) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2251903
216
584
142