UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

22 lines (18 loc) 706 B
import { StickerKeyboardStyle, StickerKeyboardStyleInterface } from "./StickerKeyboardStyle"; //@ts-ignore import { CometChat } from "@cometchat/chat-sdk-react-native"; /** * @class StickerKeyboardConfiguration * @description StickerKeyboardConfiguration class is used for defining the StickerKeyboard templates. * @param {Function} onPress * @param {Object} style */ class StickerKeyboardConfiguration { onPress: (item: CometChat.CustomMessage) => void style: StickerKeyboardStyleInterface constructor({ onPress, style = new StickerKeyboardStyle({}) }: any) { this.onPress = onPress; this.style = new StickerKeyboardStyle(style ?? {}); } } export { StickerKeyboardConfiguration };