1.1.1 • Published 3 years ago

@evolvier/react-native-select v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

React Native Select npm version Dependency Status

A multi (or single) select component

Installation

This library is available on npm, you need to have node.js installed.

install it with npm:

npm i --save @evolvier/react-native-select

Alternatively you can use yarn.

yarn add @evolvier/react-native-select

Usage

import React, { Component } from "react";
import ReactNativeSelect from "@evolvier/react-native-select";

class Example extends Component {
  render() {
    let data = [
      {
        key: "10011",
        title: "William",
        subtitle: "Developer",
      },
      {
        key: "10012",
        title: "Emma",
        subtitle: "UI/UX Designer",
      },
      {
        key: "10013",
        title: "James",
      },
    ];

    return (
      <ReactNativeSelect
        items={data}
        onSubmit={(selectedItem) => console.log(selectedItem)}
      />
    );
  }
}

Props

PropertyTypeDefaultDescription
items *ArrayArray of objects to populate the list More info
onSubmit *FuncCalled when selectedItem(s) changes
typeStringselectType of selection select or multi
placeholderTextString"Select Item"Select input placeholder text
renderItemFunc
selectedItemsPositionStringinsidePosition of selected items in multi type inside or below
renderSelectedItemFunc
enableSearchBooleanfalseEnable search
searchInputPlaceholderTextString"Search..."Search box placeholder text
renderSearchInputFunc
defaultSelectedItemsArray
defaultSelectedItemString | Number
hideOnBackdropPressBooleanfalse
disableAndroidBackBooleanfalse
* isRequired fields

items

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

@evolvier/react-native-select is MIT Licensed.

image Copyright 2020 Evolvier Technologies. All rights reserved.

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago