New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dropmate-rn

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropmate-rn

A flexible and customizable multi-select dropdown component for React Native

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

DropMate

npm downloads license React Native

DropMate is a flexible and customizable multi-select dropdown component for React Native. Designed for simplicity and performance, it provides developers with an intuitive way to implement multi-selection functionality in their applications. It supports dynamic styling, custom rendering, and is easy to integrate into existing projects.

Features

  • 🖌️ Custom Rendering: Fully customize the input, dropdown items, and selected items.
  • 🎨 Dynamic Styling: Easily apply styles to seamlessly match your app’s theme.
  • 🚀 Lightweight and Fast: Minimal dependencies and optimized for performance.
  • 🔄 Add New Items: Dynamically add new items directly from the dropdown.
  • 🧩 Extensive Control: Configure selection limits, handle custom behavior, and more.

Key Properties

FeatureDescription
Ease of UseSimple to set up and use, with minimal configuration required.
CustomizabilitySupports custom input fields, dropdown items, and close icons.
PerformanceOptimized to handle large datasets and mobile performance constraints.
Dynamic UpdatesAllows adding new items dynamically when no matches are found.
Cross-PlatformWorks seamlessly across React Native environments (Android and iOS).
ExtensibilityHighly configurable with custom render functions and event callbacks.
Comprehensive DocsDetailed documentation with examples and usage guides.

Props

Prop NameTypeDefaultDescription
dataarray[]List of items to display in the dropdown.
placeholderstring"Search or add category"Placeholder text for the input field.
maxSelectablenumber5Maximum number of items a user can select.
onSelectfunc() => {}Callback function triggered when items are selected.
renderInputfuncnullCustom render function for the input field.
renderDropdownItemfuncnullCustom render function for dropdown items.
renderAddItemfuncnullCustom render function for the "Add Item" option.
renderCloseIconfuncnullCustom render function for the close icon in selected items.

Usage

import React, { useState } from 'react';
import { View, Text, TextInput } from 'react-native';
import DropMate from 'dropmate-rn';

const App = () => {
  const [selectedItems, setSelectedItems] = useState([]);

  const handleSelect = (selected) => {
    setSelectedItems(selected);
  };

  return (
    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <DropMate
        data={['Item 1', 'Item 2', 'Item 3', 'Item 4', 'Item 5']}
        placeholder="Select items"
        maxSelectable={3}
        onSelect={handleSelect}
        renderInput={(props) => <TextInput {...props} />}
        renderDropdownItem={(item) => <Text>{item}</Text>}
        renderAddItem={(props) => <Text {...props}>Add Item</Text>}
        renderCloseIcon={(item) => <Text></Text>}
      />
    </View>
  );
};

export default App;

Installation

# Using npm
npm install dropmate-rn

# Using Yarn
yarn add dropmate-rn

Keywords

react-native

FAQs

Package last updated on 17 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts