react-native-gifted-chat-flashlist
Version:
React Native Gifted Chat with FlashList optimization for better performance
11 lines (10 loc) • 466 B
TypeScript
import * as React from 'react';
import { ActionSheetOptions } from '@expo/react-native-action-sheet';
export interface IGiftedChatContext {
actionSheet(): {
showActionSheetWithOptions: (options: ActionSheetOptions, callback: (buttonIndex?: number) => void | Promise<void>) => void;
};
getLocale(): string;
}
export declare const GiftedChatContext: React.Context<IGiftedChatContext>;
export declare const useChatContext: () => IGiftedChatContext;