1.0.9 • Published 5 years ago

react-native-simple-dropdown v1.0.9

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

react-native-simple-dropdown

npm license

Simple dropdown on iOS and Android

Based on react-native-material-dropdown

Installation

$ npm install --save react-native-simple-dropdown

For React-Native < 0.60 users:

$ react-native link

For React-Native > 0.60 and CocoaPods users

$ cd ios && pod install && cd ..

Usage

import React, { Component } from "react";
import { Dropdown } from "react-native-simple-dropdown";

class Example extends Component {
  render() {
    let data = [
      {
        value: "Banana",
      },
      {
        value: "Mango",
      },
      {
        value: "Pear",
      },
    ];

    return <Dropdown label="Favorite Fruit" data={data} />;
  }
}

Properties

Methods