npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-easy-dropdown

v1.0.3

Published

A customizable and easy-to-use dropdown component for React Native with multi-select, search, and styling support.

Downloads

23

Readme

📦 react-native-easy-dropdown

npm version Downloads License

A professional, searchable, and easy-to-use dropdown component for React Native. Supports both single-select and multi-select modes with smooth modal-based UI.


✨ Features

  • ✅ Single & Multi-select support
  • 🔍 Built-in search bar
  • 🎨 Fully customizable styles and colors
  • 🎯 Validations and prop deprecation warnings in development
  • 📱 Compatible with iOS & Android
  • 🌐 RTL layout support
  • 🪶 Lightweight and dependency-free

📦 Installation

npm install react-native-easy-dropdown
# or
yarn add react-native-easy-dropdown

🚀 Usage

✅ Single Select

import React, { useState } from 'react';
import { View } from 'react-native';
import Dropdown from 'react-native-easy-dropdown';

const App = () => {
  const [selected, setSelected] = useState(null);

  const options = [
    { label: 'Apple', value: 'apple' },
    { label: 'Banana', value: 'banana' },
    { label: 'Mango', value: 'mango' },
  ];

  return (
    <View style={{ marginTop: 50 }}>
      <Dropdown
        options={options}
        selectedValue={selected}
        onChange={(value, item) => setSelected(value)}
        title="Select a fruit"
        placeholder="Choose a fruit"
      />
    </View>
  );
};

✅ Multi Select

import React, { useState } from 'react';
import { View } from 'react-native';
import Dropdown from 'react-native-easy-dropdown';

const App = () => {
  const [selected, setSelected] = useState([]);

  const hobbies = [
    { label: 'Reading', value: 'reading' },
    { label: 'Coding', value: 'coding' },
    { label: 'Gaming', value: 'gaming' },
  ];

  return (
    <View style={{ marginTop: 50 }}>
      <Dropdown
        options={hobbies}
        selectedValue={selected}
        multiSelect={true}
        onChange={(values, items) => setSelected(values)}
        title="Select hobbies"
        placeholder="Choose hobbies"
      />
    </View>
  );
};

🧩 Props

| Prop | Type | Required | Default | Description | |-------------------------|----------------------------------------------|----------|-------------|-----------------------------------------------------------------------------| | options | Array<{ label: string; value: any }> | ✅ | [] | The dropdown list items | | selectedValue | string \| number \| (string \| number)[] | ❌ | null | Current selected value(s) | | onChange | (value, item(s)) => void | ✅ | — | Callback with selected value(s) and item(s) | | multiSelect | boolean | ❌ | false | Enable multi-select mode | | searchSource | Array<{ label: string; value: any }> | ❌ | [] | Source to use for filtering search results | | title | string | ❌ | "Select" | Modal header title | | placeholder | string | ❌ | "Select" | Placeholder text | | modalAnimation | "slide" \| "fade" \| "none" | ❌ | "slide" | Animation type for modal | | arrowIcon | ImageSourcePropType | ❌ | null | Icon displayed next to dropdown text | | disabled | boolean | ❌ | false | Disable dropdown interaction | | showSearchBar | boolean | ❌ | true | Show or hide the internal search bar | | colors | object | ❌ | defaults | Customize internal color scheme (see below) | | dropdownStyle | ViewStyle | ❌ | default | Style for the main dropdown container | | placeholderStyle | TextStyle | ❌ | default | Style for placeholder text | | selectedTextStyle | TextStyle | ❌ | default | Style for selected text | | itemTextStyle | TextStyle | ❌ | default | Style for dropdown items | | searchBarContainerStyle | ViewStyle | ❌ | default | Style for the search bar container | | dropDownImageStyle | ViewStyle | ❌ | default | Style for the arrow icon container |


🎨 colors keys

{
  theme?: string,
  seperator?: string,
  placeHolder?: string,
  selectedText?: string,
  itemText?: string,
  itemRow?: string,
  itemDisabled?: string,
  itemDisabledText?: string,
  itemBackground?: string,
  selectedItemBackground?: string,
}

⚠️ Deprecated Props

These will show console warnings in __DEV__ mode:

| Deprecated Prop | Use Instead | |------------------|--------------------| | data | options | | dummyData | searchSource | | value | selectedValue | | multiple | multiSelect | | dropDownImage | arrowIcon | | placeHolder | placeholder | | animation | modalAnimation |


📄 License

MIT