Skip to content

Commit

Permalink
Add TypeScript types
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikra committed Jul 12, 2018
1 parent da74bb0 commit dbd9da9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.d.ts
@@ -0,0 +1,14 @@
import { ActionSheetIOSOptions } from 'react-native';

export interface ActionSheetProps {
showActionSheetWithOptions: (
options: ActionSheetIOSOptions,
callback: (buttonIndex: number) => void,
) => void;
}

export function connectActionSheet<T>(
WrappedComponent: React.ComponentType<T & ActionSheetProps>,
): React.ComponentClass<T>;

export const ActionSheetProvider: React.ComponentClass;

0 comments on commit dbd9da9

Please sign in to comment.