# @types/react-native-actionsheet

> TypeScript definitions for react-native-actionsheet

Latest version **2.4.7** (published 2023-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-native-actionsheet
pnpm add @types/react-native-actionsheet
yarn add @types/react-native-actionsheet
bun add @types/react-native-actionsheet
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.4.7 |
| Published | 2023-12-21 |
| First published | 2019-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-native-actionsheet
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-actionsheet
- npm.io page: https://npm.io/package/@types/react-native-actionsheet

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 2.4.7 (latest) — 2023-12-21
- 2.4.6 (ts4.5) — 2023-11-07
- 2.4.3 (ts3.6) — 2021-07-08
- 2.4.2 (ts3.2) — 2020-10-16
- 2.4.1 (ts2.8) — 2019-08-01
- 2.4.5 — 2023-10-18
- 2.4.4 — 2023-09-27
- 2.4.0 — 2019-05-15

## README

# Installation
> `npm install --save @types/react-native-actionsheet`

# Summary
This package contains type definitions for react-native-actionsheet (https://github.com/beefe/react-native-actionsheet).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-actionsheet.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-actionsheet/index.d.ts)
````ts
import * as React from "react";

export interface ActionSheetProps {
    options: string[];
    onPress: (index: number) => void;
    title?: string | undefined;
    message?: string | undefined;
    tintColor?: string | undefined;
    cancelButtonIndex?: number | undefined;
    destructiveButtonIndex?: number | undefined;
}

export interface ActionSheetCustomProps {
    options: React.ReactNode[];
    onPress: (index: number) => void;
    title?: React.ReactNode | undefined;
    message?: string | undefined;
    tintColor?: string | undefined;
    buttonUnderlayColor?: string | undefined;
    cancelButtonIndex?: number | undefined;
    destructiveButtonIndex?: number | undefined;
    styles?: object | undefined;
}

export default class ActionSheet extends React.Component<ActionSheetProps> {
    show: () => void;
}

export class ActionSheetCustom extends React.Component<ActionSheetCustomProps> {
    hide: (index?: number) => void;
    show: () => void;
}

````

### Additional Details
 * Last updated: Thu, 21 Dec 2023 19:06:51 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Ian](https://github.com/ian-rudge).

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