Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IProps<T>

Type parameters

  • T

Hierarchy

  • IProps

Index

Properties

Optional animate

animate: undefined | false | true

Determines if the component should animate

Optional fadeDelay

fadeDelay: undefined | number

How long to delay the fade animations

Optional fadeDuration

fadeDuration: undefined | number

How long the fade animations should take

Optional fadeEasing

fadeEasing: EasingFunction

The easing to use for the fade

message

message: Omit<IMessageImmutable<T>, "id">

The message to render

Optional style

style: StyleProp<ViewStyle>

Style overrides for the message bubble

Optional theme

theme: ITheme

Theming for the message, bubble

Optional us

us: "left" | "right"

Determines which side the users message should render on. Defaults to the right hand side

user

user: string | IGuidImmutable

The unique user identification value for this chat

Methods

onRenderContent

  • onRenderContent(data: T, style: TextStyle, us: boolean, theme: ITheme | undefined): Element
  • Performs rendering of a message.

    Parameters

    • data: T

      the message data to render

    • style: TextStyle

      suggested styling for text

    • us: boolean

      determines if the message was sent from the current user

    • theme: ITheme | undefined

      the theme to use for rendering the data

    Returns Element

    a rendered element to display