react-native-multipicker

0.1.1 • Public • Published

react-native-multi-picker

A UIPickerView implementation that allows you to have multiple components in your picker.

You can make a basic one like so:

var MultiPickerIOS = require('react-native-multi-picker');
var { Group, Item } = MultiPickerIOS;
 
var MultiPickerExampleApp = React.createClass({
  render() {
    return (
      <MultiPickerIOS style={styles.picker} onChange={this._someOnChange}>
          <Group selectedValue={this.state.currentWord} onChange={this._someOtherOnChange}>
              <Item value="How" label="How" />
              <Item value="now" label="now" />
              <Item value="brown" label="brown" />
              <Item value="cow" label="cow" />
          </Group>
          <Group selectedValue={this.state.curentCount}>
              <Item value="Uno" label="Uno" />
              <Item value="Dos" label="Dos" />
              <Item value="Tres" label="Tres" />
              <Item value="Four" label="Four" />
          </Group>
      </MultiPickerIOS>
    )
  }
});

Readme

Keywords

Package Sidebar

Install

npm i react-native-multipicker

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • brentvatne
  • veddermatic