@types/react-native-actionsheet
TypeScript icon, indicating that this package has built-in type declarations

2.4.7 • Public • Published

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

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

Credits

These definitions were written by Ian.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-native-actionsheet

Weekly Downloads

14,378

Version

2.4.7

License

MIT

Unpacked Size

4.67 kB

Total Files

5

Last publish

Collaborators

  • types