1.0.92 • Published 4 years ago

react-native-awesome-select v1.0.92

Weekly downloads
20
License
ISC
Repository
github
Last release
4 years ago

React-native-awesome-select

A multiselect component with zero dependencies.

demo

Install

npm install react-native-awesome-select

Usage

import React from "react";
import { View } from "react-native";
import AwesomeSelect from "react-native-awesome-select";

const data = [
  {
    name: "First item",
    isActive: false
  },
  {
    name: "Second item",
    isActive: false
  }
];

export default function App() {
  return (
    <View>
      <AwesomeSelect
        data={ data }
        onValueChange={ value => console.log(value) }
      />
    </View>
  );
}

Props

PropTypeDescription
dataarrayData array that will be passed and displayed
onValueChangefunctionCallback called when value has been changed
activeStylestyleThe style applied to the elements with active state
inactiveStylestyleThe style applied to the elements with inactive state
1.0.91

4 years ago

1.0.92

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago