import { ViewStyle, LayoutChangeEvent } from 'react-native' import { AvatarProps } from '../Avatar' import { BubbleProps } from '../Bubble' import { DayProps } from '../Day' import { IMessage, User, LeftRightStyle } from '../Models' import { SwipeToReplyProps } from '../Reply' import { SystemMessageProps } from '../SystemMessage' export interface MessageProps { isUserAvatarVisible?: boolean position: 'left' | 'right' currentMessage: TMessage nextMessage?: TMessage previousMessage?: TMessage user: User isInverted?: boolean containerStyle?: LeftRightStyle renderBubble?: (props: BubbleProps) => React.ReactNode renderDay?: (props: DayProps) => React.ReactNode renderSystemMessage?: (props: SystemMessageProps) => React.ReactNode renderAvatar?: (props: AvatarProps) => React.ReactNode onMessageLayout?: (event: LayoutChangeEvent) => void /** Swipe to reply configuration */ swipeToReply?: SwipeToReplyProps }