react-native-chating-ui-kit
Version:
CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly
36 lines (35 loc) • 927 B
TypeScript
import React from "react";
import { ImageType } from "../../base/Types";
import { AudioBubbleStyleInterface } from "./AudioBubbleStyle";
export interface CometChatAudioBubbleInterface {
/**
* url of audio
*/
audioUrl: string;
/**
* title of audio
*/
title: string;
/**
* subtitle of audio
*/
subtitle?: string;
/**
* custom icon for play
*/
playIcon?: ImageType;
/**
* custom icon for pause
*/
pauseIcon?: ImageType;
/**
* pass function to handle custom play/pause logic.
* one parameters will be received audioUrl
*/
onPress?: Function;
/**
* style object of type AudioBubbleStyleInterface
*/
style?: AudioBubbleStyleInterface;
}
export declare const CometChatAudioBubble: ({ audioUrl, onPress, playIcon, pauseIcon, style, subtitle, title }: CometChatAudioBubbleInterface) => React.JSX.Element;