# rnx-ui-dropdown

> RNX UI Component: Dropdown

Latest version **0.0.1** (published 2016-11-25) · 0 weekly downloads

## Install

```sh
npm install rnx-ui-dropdown
pnpm add rnx-ui-dropdown
yarn add rnx-ui-dropdown
bun add rnx-ui-dropdown
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-11-25 |
| First published | 2016-11-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wangdagen |
| Keywords | rnx, ui, Dropdown, react-native |

## Links

- npm: https://www.npmjs.com/package/rnx-ui-dropdown
- npm.io page: https://npm.io/package/rnx-ui-dropdown

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2016-11-25

## README

DropDown
====================

[![npm](https://img.shields.io/npm/v/rnx-ui-dropdown.svg?maxAge=2592000)](https://www.npmjs.com/package/rnx-ui-dropdown)
[![npm](https://img.shields.io/npm/dt/rnx-ui-dropdown.svg?maxAge=2592000)](https://www.npmjs.com/package/rnx-ui-dropdown)

下拉选择

API
-----
Prop                  | Type     | Default                   | Required | Description
--------------------- | -------- | ------------------------- | -------- | -----------
config                |object    |{}                         |yes       |配置对象
onSelect              |func      |null                       |no        |选中的回调


```js
// 渲染一个能出发dropDown的输入框
<dropDownTrigger
    config={dropDownCnf}
/>

// 跟dropDownTrigger一一对应，必须置于底部
<dropDown
    data={[]}
    config={dropDownCnf}  
/>

// config必须包含如下字段
dropDownCnf = {
    // 下拉框值的获取器
    valueGetter: function () {
        return me.state.value
    },
    // 下拉框值的设置器
    valueSetter: function (value) {
        return me.setState({
            value: value,
        })
    },
    // 下拉框的显示状态获取器
    visibleGetter: function () {
        return me.state.cur1
    },
    // 下拉框的显示状态设置器
    visibleSetter: function (visible, style) {
        return me.setState({cur1: {
            visible: visible,
            style: {...style}
        }})
    },
}
```

---
_Source: https://npm.io/package/rnx-ui-dropdown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
