UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

29 lines (28 loc) 1.08 kB
import { JSX } from "react"; import { ImageSourcePropType, ImageStyle, StyleProp, TextStyle, ViewStyle } from "react-native"; export interface CometChatAudioBubbleInterface { /** * url of audio */ audioUrl: string; /** * custom icon for play */ playIcon?: ImageSourcePropType | JSX.Element; /** * custom icon for pause */ pauseIcon?: ImageSourcePropType | JSX.Element; /** * pass function to handle custom play/pause logic. * one parameters will be received audioUrl */ onPress?: Function; playViewContainerStyle?: StyleProp<ViewStyle>; playIconStyle?: ImageStyle; playIconContainerStyle?: StyleProp<ViewStyle>; waveStyle?: StyleProp<ViewStyle>; waveContainerStyle?: StyleProp<ViewStyle>; playProgressTextStyle?: TextStyle; } export declare const CometChatAudioPreview: ({ audioUrl, onPress, playIcon, pauseIcon, playViewContainerStyle, playIconStyle, playIconContainerStyle, waveStyle, waveContainerStyle, playProgressTextStyle, }: CometChatAudioBubbleInterface) => JSX.Element;