# react-native-action-sheet-native

> ActionSheet for React Native support IOS and Android

Latest version **0.0.1** (published 2017-10-23) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install react-native-action-sheet-native
pnpm add react-native-action-sheet-native
yarn add react-native-action-sheet-native
bun add react-native-action-sheet-native
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-10-23 |
| First published | 2017-10-23 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ToanHQ |
| Maintainers | huynhquangtoan |
| Keywords | react, android, react native, actionsheet, actionsheet native android, actionsheet android like ios, react native, react native actionsheet, react native action sheet |

## Links

- npm: https://www.npmjs.com/package/react-native-action-sheet-native
- Homepage: https://github.com/huynhquangtoan/react-native-action-sheet-native
- npm.io page: https://npm.io/package/react-native-action-sheet-native

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-10-23

## README

# react-native-action-sheet-native
react-native-action-sheet-native is a JavaScript library for [React Native](https://facebook.github.io/react-native/),
it implements AcionSheet for Android relys on [AndroidActionSheet](https://github.com/zongjingyao/AndroidActionSheet).

### Screenshots
#### IOS
![IOS](https://i.imgur.com/bQhNtKR.png)

#### ANDROID
![ANDROID](https://i.imgur.com/X2Z3tWC.png)

### Installation
```bash
npm install react-native-action-sheet-native --save
react-native link react-native-action-sheet-native
```

### Usage

```js
...
import ActionSheet from 'react-native-action-sheet-native'
...

const IMAGE_PICKER_OPTIONS = ['Quay lại', 'Thư viện ảnh', 'Chụp ảnh mới']

...

  render() {
    return (
      <View style={styles.container}>
        <TouchableOpacity onPress={() => this.actionSheetRef.show()}>
          <Text>Show</Text>
        </TouchableOpacity>
        <Text> Selected index: {`${this.state.index}`}</Text>
        <ActionSheet
          cancelButtonIndex={0}
          destructiveButtonIndex={1}
          options={IMAGE_PICKER_OPTIONS}
          ref={actionSheetRef => (this.actionSheetRef = actionSheetRef)}
          title={'Chọn ảnh từ:'}
          onPress={index => this.setState({ index })}
        />
      </View>
    )
  }
 
...
```

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