UNPKG

softchatjs-react-native

Version:

React native UI SDK for softchatjs-core. Create a free account at: https://www.softchatjs.com

35 lines (32 loc) 972 B
import React from 'react'; import { TextInput } from 'react-native'; type ChatInputProps = { inputRef: React.RefObject<TextInput>; mediaOptionsRef?: React.RefObject<any>; openEmojis?: () => void; sendMessage: () => void; chatUserId: string; hasEmojis?: boolean; value: string; setValue: (value: string) => void; isEditing?: boolean; onStopEditing?: () => void; messageType?: "text" | "multimedia-text"; conversationId: string; recipientId: string; audioWaves?: { [key: number]: { metering: number; height: number; }; }; isLoading?: boolean; sendVoiceMessage?: () => void; onStartRecording?: () => void; onDeleteRecording?: () => void; isRecording?: boolean; audioTime?: number; }; declare const METERING_MIN_POWER: number; declare function ChatInput(props: ChatInputProps): React.JSX.Element; export { METERING_MIN_POWER, ChatInput as default };