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

custom-react-native-dropdown

v0.1.5

Published

A fully customizable React Native dropdown component with search and multiple selection support

Readme

CustomDropdown

A fully customizable dropdown/select component for React Native.
Supports single and multiple selection, optional search, and full styling customization. Works on both iOS and Android.


Features

  • Single and multiple select modes
  • Optional searchable list
  • Customizable placeholder, colors, height, width, font size, and border radius
  • Lightweight and easy to integrate
  • Shadow and style support for dropdown list
  • Works seamlessly with dynamic data
If you love this library, give us a star, you will be a ray of sunshine in our lives :)

Getting started

npm install custom-react-native-dropdown

or

yarn add custom-react-native-dropdown

Dropdown Props

| Prop | Type | Default | Description | | ------------------ | ------------------------------------------------ | ------------------ | ----------------------------------------------------------------------------- | | data | DropdownItem[] | [] | Array of items to show. Each item: { label: string; value: string\|number } | | placeholder | string | 'Select an item' | Text shown when nothing selected | | onSelect | (item: DropdownItem \| DropdownItem[]) => void | — | Callback when selection changes | | searchable | boolean | false | Whether to show a search input | | multiple | boolean | false | Whether multiple items can be selected | | selectedValues | DropdownItem[] | [] | Initial selected items | | primaryColor | string | '#007AFF' | Color for selected text / highlight | | dropdownBgColor | string | '#FFFFFF' | Background color of dropdown list | | textColor | string | '#333333' | Color of text items | | borderColor | string | '#CCCCCC' | Border color of dropdown | | placeholderColor | string | '#999999' | Color of the placeholder text | | selectedBgColor | string | '#E3F2FD' | Background color for selected item(s) in list | | dropdownShadow | boolean | true | Whether to show shadow on dropdown list | | fontSize | number | 16 | Font size for items and placeholder | | width | number \| string | '100%' | Width of dropdown trigger container | | height | number | 50 | Height of dropdown trigger container | | maxHeight | number | 220 | Maximum height of dropdown list | | borderRadius | number | 8 | Border radius for dropdown & list |

Dropdown example

  import React, { useState } from 'react';
import { View, StyleSheet } from 'react-native';
import CustomDropdown from './src/components/CustomDropdown';

interface DropdownItem {
  label: string;
  value: string | number;
}

export default function App() {
  const [selectedFruits, setSelectedFruits] = useState<DropdownItem[]>([]);

  const fruits = [
    { label: 'Apple', value: '1' },
    { label: 'Banana', value: '2' },
    { label: 'Cherry', value: '3' },
    { label: 'Mango', value: '4' },
    { label: 'Orange', value: '5' },
    { label: 'Grapes', value: '6' },
  ];

  return (
    <View style={styles.container}>
      <CustomDropdown
        data={fruits}
        placeholder="Select fruits"
        searchable
        multiple
        selectedValues={selectedFruits}
        onSelect={(items) => setSelectedFruits(items as DropdownItem[])}
        primaryColor="#D32F2F"
        dropdownBgColor="#FFEBEE"
        selectedBgColor="#FFCDD2"
        textColor="#212121"
        borderColor="#E57373"
        placeholderColor="#9E9E9E"
        width={350}
        height={40}
        maxHeight={250}
        borderRadius={10}
        fontSize={15}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex:1,
    justifyContent:'center',
    alignItems:'center',
    backgroundColor:'#FAFAFA',
  },
});