react-native-gifted-chat
Version:
The most complete chat UI for React Native
29 lines • 1.48 kB
TypeScript
import React from 'react';
import { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
import { IMessage, ReplyMessage } from '../Models';
export interface MessageReplyProps<TMessage extends IMessage = IMessage> {
/** The reply message to display */
replyMessage: ReplyMessage;
/** The current message containing the reply */
currentMessage: TMessage;
/** Position of the bubble (left or right) */
position: 'left' | 'right';
/** Container style for the reply */
containerStyle?: StyleProp<ViewStyle>;
/** Container style for left position */
containerStyleLeft?: StyleProp<ViewStyle>;
/** Container style for right position */
containerStyleRight?: StyleProp<ViewStyle>;
/** Text style for the reply */
textStyle?: StyleProp<TextStyle>;
/** Text style for left position */
textStyleLeft?: StyleProp<TextStyle>;
/** Text style for right position */
textStyleRight?: StyleProp<TextStyle>;
/** Image style for the reply */
imageStyle?: StyleProp<ImageStyle>;
/** Callback when reply is pressed */
onPress?: (replyMessage: ReplyMessage) => void;
}
export declare function MessageReply<TMessage extends IMessage = IMessage>({ replyMessage, currentMessage, position, containerStyle, containerStyleLeft, containerStyleRight, textStyle, textStyleLeft, textStyleRight, imageStyle, onPress, }: MessageReplyProps<TMessage>): React.JSX.Element;
//# sourceMappingURL=MessageReply.d.ts.map