All Projects → pinguinjkeke → react-native-wheel-datepicker

pinguinjkeke / react-native-wheel-datepicker

Licence: other
Android & iOS iOS-style Picker & DatePicker Components for ReactNative

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-wheel-datepicker

Datepicker
仿滴滴出行预约打车IOS风格3D时间选择器 🌲
Stars: ✭ 118 (+63.89%)
Mutual labels:  picker, date-picker
Wheelpicker
A smooth, highly customizable wheel view and picker view, support 3D effects like iOS. 一个顺滑的、高度自定义的滚轮控件和选择器,支持类似 iOS 的 3D 效果
Stars: ✭ 684 (+850%)
Mutual labels:  wheel, picker
Pd Select
vue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮
Stars: ✭ 101 (+40.28%)
Mutual labels:  wheel, picker
colr pickr
Colr Pickr, a vanilla JavaScript color picker component built with SVGs, with features like saving colors. Similar design to the chrome-dev-tools color picker.
Stars: ✭ 27 (-62.5%)
Mutual labels:  picker
EasyAlbum
📷 A lightweight, pure-Swift library for pick up photo from your album.
Stars: ✭ 31 (-56.94%)
Mutual labels:  picker
react-material-color-picker
react-material-color-picker component for selecting colors from google material color palette 📃
Stars: ✭ 19 (-73.61%)
Mutual labels:  picker
filestack-ios
Official iOS SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
Stars: ✭ 44 (-38.89%)
Mutual labels:  picker
TTADataPickerView
A Swift picker view allow you to pick the titles you want and the date, time or dateTime in one view
Stars: ✭ 35 (-51.39%)
Mutual labels:  picker
CLI-Autocomplete
Cross-platform flexible autocomplete library for your CLI applications.
Stars: ✭ 21 (-70.83%)
Mutual labels:  crossplatform
embla-carousel-wheel-gestures
wheel interactions for Embla Carousel
Stars: ✭ 30 (-58.33%)
Mutual labels:  wheel
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (+22.22%)
Mutual labels:  picker
jh-weapp-demo
微信小程序项目- 实现一些常用效果、封装通用组件和工具类
Stars: ✭ 60 (-16.67%)
Mutual labels:  picker
aka-ios-beacon
The missing binding framework for iOS
Stars: ✭ 13 (-81.94%)
Mutual labels:  picker
react-native-simple-picker
A simple picker for React Native.
Stars: ✭ 89 (+23.61%)
Mutual labels:  picker
react-native-multi-selectbox
Platform independent (Android / iOS) Selectbox | Picker | Multi-select | Multi-picker. The idea is to bring out the common user interface & user experience on both platforms.
Stars: ✭ 169 (+134.72%)
Mutual labels:  picker
EmojiPicker
This library to show a popover to select emoji for iOS
Stars: ✭ 58 (-19.44%)
Mutual labels:  picker
jquery-datepicker
A full-featured datepicker jquery plugin
Stars: ✭ 35 (-51.39%)
Mutual labels:  picker
check-wheel-contents
Check your wheels have the right contents
Stars: ✭ 131 (+81.94%)
Mutual labels:  wheel
Fluent-Random-Picker
Fluent Random Picker is a nice, performant, fluent way to pick random values. Probabilities can be specified, values can be weighted.
Stars: ✭ 26 (-63.89%)
Mutual labels:  picker
flutter-spinning-wheel
A very customizable spinning wheel widget for Flutter.
Stars: ✭ 110 (+52.78%)
Mutual labels:  wheel

react-native-wheel-datepicker

A iOS style picker and datepicker components for ReactNative.

This is the third fork of repository and its targeted to support and maintain current code. I asked github team to make it my own as is all pull requests goes directly to @lesliesam original repository but it seems to be no longer maintained.

Introduction

Cross platform Picker component for React-native.

Since picker is originally supported by iOS while Android only supports a ugly Spinner component. If you want to have the same user behaviour, you can use this.

The android component is based on wheel-picker which runs super fast and smoothly. It also supports curved effect which make it exactly the same looking and feel as the ios picker.

How to use

Run command

For apps using RN 0.32 or higher, please run

npm i react-native-wheel-datepicker --save

For apps using RN 0.31 or less, please run

npm install --save --save-exact [email protected]

Configration:

react-native link react-native-wheel-datepicker

Ingegration with CustomDatePickerIOS

By default, package provides default DatePickerIOS on the iOS side to simplify usage on both platforms.

You can install react-native-custom-datepicker-ios package if you need textColor functionality on IOS platform.

Just install:

npm i react-native-custom-datepicker-ios
// or
yarn add react-native-custom-datepicker-ios

link dependencies:

react-native link react-native-custom-datepicker-ios

And register CustomDatePickerIOS inside react-native-wheel-datepicker package.

import { registerCustomDatePickerIOS } from 'react-native-wheel-datepicker';
import CustomDatePickerIOS from 'react-native-custom-datepicker-ios';

registerCustomDatePickerIOS(CustomDatePickerIOS);

Then you can use textColored components for both platforms inside render function!

import { DatePicker } from 'react-native-wheel-datepicker';

// ...
render() {
  return (
    <DatePicker
      mode="date"
      textColor="green"
    />
  )
}

Example code

import { Picker, DatePicker } from 'react-native-wheel-datepicker';

// use DatePicker
<DatePicker
  mode="date"
/>

// use Picker
<Picker
  style={{ flex: 1 }}
  selectedValue={1}
  pickerData={[1, 2, 3, 4, 5, 6]}
  onValueChange={value => this.setState({ value })}
/>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].