2.4.7 • Published 5 months ago
@types/react-native-actionsheet v2.4.7
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
// Type definitions for react-native-actionsheet 2.4
// Project: https://github.com/beefe/react-native-actionsheet
// Definitions by: Ian <https://github.com/ian-rudge>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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, 08 Jul 2021 20:20:58 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Ian.