mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
23 lines
663 B
TypeScript
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;
|
|
}
|