Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-wheel-picker-android

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-wheel-picker-android - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

src/assets/datePickerAndroid.gif

3

index.js

@@ -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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc