# react-native-dj-alertselected

> daojia react-native-dj-alertselected

Latest version **1.0.15** (published 2017-03-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-dj-alertselected
pnpm add react-native-dj-alertselected
yarn add react-native-dj-alertselected
bun add react-native-dj-alertselected
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.15 |
| Published | 2017-03-15 |
| First published | 2016-11-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | birenjie |
| Maintainers | birenjie |
| Keywords | daojia, alertselected |

## Links

- npm: https://www.npmjs.com/package/react-native-dj-alertselected
- npm.io page: https://npm.io/package/react-native-dj-alertselected

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.15 (latest) — 2017-03-15
- 1.0.13 — 2016-12-13
- 1.0.12 — 2016-12-10
- 1.0.11 — 2016-12-10
- 1.0.10 — 2016-12-10
- 1.0.9 — 2016-12-10
- 1.0.8 — 2016-12-03
- 1.0.7 — 2016-12-03
- 1.0.6 — 2016-12-03
- 1.0.5 — 2016-12-03
- 1.0.4 — 2016-12-03
- 1.0.3 — 2016-12-03
- 1.0.2 — 2016-11-19
- 1.0.1 — 2016-11-19
- 1.0.0 — 2016-11-19

## README

# AlertSelected

![accordion](http://images.daojia.com/img/f5312ccbee448ef807262618003021db.png)

## Install
```shell
npm i --save react-native-dj-alertselected
```

## Usage
Using an Accordion in your app will usually look like this:
```js
import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

import AlertSelected from 'react-native-dj-alertselected';

export default class NPMTest extends Component {

  testAlertSelected(){
    let array = ["男","女"];
    /**
     * 弹出控件，最多支持3个选项
     * title: 标题
     * entityList：选择项数据   数组
     * field：操作字段
     * parent：父对象
     * callback：回调方法
     */
    this.refs.as.show("选择性别", array,"sex",this,(field,i)=>{alert(array[i])});
  }

  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.welcome} onPress={this.testAlertSelected.bind(this)}>
          Welcome to React Native!
        </Text>
        {/*初始化组件*/}
        <AlertSelected ref="as" isRnNav={true}/>
      </View>
    );
  }
}

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

AppRegistry.registerComponent('xxx', () => NPMTest);
```

## Props
The following props can be used to modify the style and/or behaviour:

| Prop | Type | Opt/Required | Default | Note |
|---|---|---|---|---|
|__`isRnNav`__|_Boolean_|Required|`false`|是否正在使用RN导航，默认为false.


## Methods
The following methods can be used to open and close the accordion:

| Method | Parameters | Note |
|---|---|---|
|__`show`__|`title: 标题、entityList：选择项数据数组、field：操作字段、parent：父对象、callback：回调方法`|调起控件.

---
_Source: https://npm.io/package/react-native-dj-alertselected · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
