Skip to main content
Version: 2.13.0

Installation

Install the package

npm install @carlos3g/element-dropdown
yarn add @carlos3g/element-dropdown

Peer dependencies

@carlos3g/element-dropdown declares react and react-native as peerDependencies: "*" — the package does not pin them. Use the react and react-native versions your app is already on. The library itself runs on everything from react-native@0.71+ and any matching React version.

There are no native modules, no pods to link, no Gradle files to touch. Expo Managed and bare React Native both work as-is.

Supported platforms

  • iOS
  • Android
  • React Native Web (via react-native-web)

TypeScript

TypeScript support is first-class — the package ships both the type definitions and the TypeScript source. Consumer types are re-exported from the package root:

import type {
DropdownProps,
IDropdownRef,
MultiSelectProps,
IMultiSelectRef,
SelectCountryProps,
ISelectCountryRef,
} from '@carlos3g/element-dropdown';

Verifying the install

The fastest smoke test is rendering a minimal Dropdown — head to Quick start.