# react-native-devansh-action-sheet

> Action Sheet/Option Picker for react-native

Latest version **2.0.1** (published 2021-01-07) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2.0.1 |
| Published | 2021-01-07 |
| First published | 2021-01-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 178.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Devansh |
| Maintainers | devansh15 |
| Keywords | ios, android, option, picker, react, native-native, action-sheet, action-label, selector |

## Links

- npm: https://www.npmjs.com/package/react-native-devansh-action-sheet
- Repository: https://github.com/sdevansh96/react-native-action-sheet
- Homepage: https://github.com/sdevansh96/react-native-action-sheet#readme
- Issues: https://github.com/sdevansh96/react-native-action-sheet/issues
- npm.io page: https://npm.io/package/react-native-devansh-action-sheet

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## 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

- 2.0.1 (latest) — 2021-01-07
- 2.0.0 — 2021-01-05
- 1.0.11 — 2021-01-02
- 1.0.10 — 2021-01-02
- 1.0.1 — 2021-01-02
- 1.0.0 — 2021-01-02

## README

# react-native-action-sheet

Custom action sheet/option picker for react native

<img src="./assets/1.png" alt="main image">
<img src="./assets/2.png" alt="main image" style={{height:200,width:100}}>
<img src="./assets/3.png" alt="main image" style={{height:600,width:400}}>

# Installation

`npm install --save react-native-devansh-action-sheet`

# Importing

`import React,{useState} from 'react';`

`import ActionSheet from 'react-native-devansh-action-sheet';`

# Example with Hooks

```
const [actionSheetVisibility,setActionSheetVisibility]=useState(false);

<Text onPress={() => setActionSheetVisibility(true)}>
        Show Action Sheet
  </Text>
        <ActionSheet
          onClose={() => setActionSheetVisibility(!actionSheetVisibility)} // to close the modal
          visibility={actionSheetVisibility}
          actionLabel={[
              {
              id:1,
              name:"Option 1"
            },
              {
              id:2,
              name:"Option 2",
               labelTextStyle: {
              fontSize: 30,
            },
            },
              {
              id:3,
              name:"Option 3",
               labelBackground: 'red',
               colored: true,
            },
             {
              id:4,
              name:"cancel",
              colored: true
            }
          ]}
          onActionLabelSelected={(val, index) => console.log(val, index)}
          heading={"My New Heading"}
        />

```

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