All Projects → duhwcarvalho → react-native-picker-box

duhwcarvalho / react-native-picker-box

Licence: MIT license
Simple and configurable component picker for react native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-picker-box

React Native Modal Dropdown
A react-native dropdown/picker/selector component for both Android & iOS.
Stars: ✭ 1,103 (+Infinity%)
Mutual labels:  dropdown, picker
React Native Number Please
🔢 Generate react-native pickers with range numbers.
Stars: ✭ 30 (+Infinity%)
Mutual labels:  dropdown, picker
Mkdropdownmenu
🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs
Stars: ✭ 523 (+Infinity%)
Mutual labels:  dropdown, picker
csc picker
A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.
Stars: ✭ 25 (+Infinity%)
Mutual labels:  dropdown, 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 (+Infinity%)
Mutual labels:  dropdown, picker
React Native Picker Select
🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
Stars: ✭ 1,229 (+Infinity%)
Mutual labels:  dropdown, picker
Re Spinner
A spinner that supports item click events
Stars: ✭ 19 (+Infinity%)
Mutual labels:  dropdown, picker
React Native Dropdown Picker
A single / multiple, categorizable & searchable item picker (dropdown) component for react native which supports both Android & iOS.
Stars: ✭ 230 (+Infinity%)
Mutual labels:  dropdown, picker
react-native-smart-picker
React Native Smart Picker is easy wrapper for React Native Picker. Allows toggling the picker open and closed on iOS and native behaviour on Android.
Stars: ✭ 19 (+Infinity%)
Mutual labels:  dropdown, picker
react-native-select-pro
React Native dropdown (select) component developed by Mobile Reality
Stars: ✭ 79 (+Infinity%)
Mutual labels:  dropdown, picker
react-material-color-picker
react-material-color-picker component for selecting colors from google material color palette 📃
Stars: ✭ 19 (+Infinity%)
Mutual labels:  picker
aka-ios-beacon
The missing binding framework for iOS
Stars: ✭ 13 (+Infinity%)
Mutual labels:  picker
JDropDownAlert
Simple DropDown Alert View For Any iOS Projects.
Stars: ✭ 71 (+Infinity%)
Mutual labels:  dropdown
wp-parsidate
Integrates the Solar Hijri (Persian) calendar in WordPress
Stars: ✭ 36 (+Infinity%)
Mutual labels:  picker
react-multi-select-component
Lightweight (~5KB gzipped) multiple selection dropdown component
Stars: ✭ 279 (+Infinity%)
Mutual labels:  dropdown
react-native-wheel-datepicker
Android & iOS iOS-style Picker & DatePicker Components for ReactNative
Stars: ✭ 72 (+Infinity%)
Mutual labels:  picker
floating-ui
A low-level toolkit to create floating elements. Tooltips, popovers, dropdowns, and more
Stars: ✭ 23,485 (+Infinity%)
Mutual labels:  dropdown
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (+Infinity%)
Mutual labels:  picker
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 (+Infinity%)
Mutual labels:  picker
toggle term
A simple script to transform your boring terminal into A DROP DOWN boring terminal
Stars: ✭ 19 (+Infinity%)
Mutual labels:  dropdown

react-native-picker-box

[This package has been deprecated]
Package no longer supported. Use at your own risk.





Simple and configurable component picker for react native

Table of contents

Usage

Installation

Just add react-native-picker-box to your project:

yarn add react-native-picker-box

Basic example

ANDROID IOS
Basic example gif android Basic example gif ios

Import

import PickerBox from 'react-native-picker-box';

Using a react-native-picker-box

export default class App extends Component {

  state={
    data: [
      {label: 'Português', value: 'pt'},
      {label: 'Deutsch', value: 'de'},
      {label: 'English', value: 'en'}
    ],
    selectedValue: ''
  }

  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.welcome} onPress={() => this.myref.openPicker() }>Press to select language</Text>
        <Text style={styles.instructions}>{ this.state.selectedValue }</Text>
        <PickerBox
          ref={ref => this.myref = ref}
          data={ this.state.data }
          onValueChange={value => this.setState({ selectedValue: value })}
          selectedValue={ this.state.selectedValue }
        />
      </View>
    );
  }
}

Props and Methods

Props

Name Type Default Required Description
data array none Yes Each item should be in the following format: {label: 'JavaScript', value: 'js'}
onValueChange function null Yes Callback for when an item is selected. This is called with the following parameter: value
selectedValue string none No Value matching value of one of the items. Can be a string or an integer.
maxHeight number - No Custom maxHeight. Is the maximum height for this component.
statusbar boolean true No StatusBar overlapping.
itemTextColor string #757379 No Custom item text color.
separatorColor string #757379 No Custom separator color.
prevTextColor string #572580 No Custom button(prev) text color.
prevTextLabel string Cancel No Custom button(prev) text label.

Methods

Method Name Arguments Description
openPicker null Open picker. Use refs for open Picker [following the example]

Contributing

Thanks for being interested on making this package better.

git clone https://github.com/duhwcarvalho/react-native-picker-box.git
cd react-native-picker-box
react-native upgrade
yarn
react-native run-android or react-native run-ios

Author


@duhwcarvalho
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].