UNPKG

466 BTypeScriptView Raw
1import * as React from 'react';
2import { ActionSheetOptions } from '@expo/react-native-action-sheet';
3export interface IGiftedChatContext {
4 actionSheet(): {
5 showActionSheetWithOptions: (options: ActionSheetOptions, callback: (buttonIndex?: number) => void | Promise<void>) => void;
6 };
7 getLocale(): string;
8}
9export declare const GiftedChatContext: React.Context<IGiftedChatContext>;
10export declare const useChatContext: () => IGiftedChatContext;