Files
DefinitelyTyped/types/react-native-actionsheet/index.d.ts

23 lines
663 B
TypeScript

// 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: React.ReactNode[];
onPress: (index: number) => void;
title?: string;
message?: string;
tintColor?: string;
cancelButtonIndex?: number;
destructiveButtonIndex?: number;
styles?: object;
}
export default class ActionSheet extends React.Component<ActionSheetProps> {
show: () => void;
}