
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
dropmate-rn
Advanced tools
A flexible and customizable multi-select dropdown component for 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.
| Feature | Description |
|---|---|
| Ease of Use | Simple to set up and use, with minimal configuration required. |
| Customizability | Supports custom input fields, dropdown items, and close icons. |
| Performance | Optimized to handle large datasets and mobile performance constraints. |
| Dynamic Updates | Allows adding new items dynamically when no matches are found. |
| Cross-Platform | Works seamlessly across React Native environments (Android and iOS). |
| Extensibility | Highly configurable with custom render functions and event callbacks. |
| Comprehensive Docs | Detailed documentation with examples and usage guides. |
| Prop Name | Type | Default | Description |
|---|---|---|---|
| data | array | [] | List of items to display in the dropdown. |
| placeholder | string | "Search or add category" | Placeholder text for the input field. |
| maxSelectable | number | 5 | Maximum number of items a user can select. |
| onSelect | func | () => {} | Callback function triggered when items are selected. |
| renderInput | func | null | Custom render function for the input field. |
| renderDropdownItem | func | null | Custom render function for dropdown items. |
| renderAddItem | func | null | Custom render function for the "Add Item" option. |
| renderCloseIcon | func | null | Custom render function for the close icon in selected items. |
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;
# Using npm
npm install dropmate-rn
# Using Yarn
yarn add dropmate-rn
FAQs
A flexible and customizable multi-select dropdown component for React Native
We found that dropmate-rn demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.