MessageView props

interface MessageViewProps {
    messageId: string;
    onClose?: (event: MessageClosedEvent) => void;
    onLoadError?: (event: MessageLoadErrorEvent) => void;
    onLoadFinished?: (event: MessageLoadFinishedEvent) => void;
    onLoadStarted?: (event: MessageLoadStartedEvent) => void;
    style?: ViewStyle;
}

Properties

messageId: string

The message Id.

onClose?: (event: MessageClosedEvent) => void

A callback when the message is closed.

onLoadError?: (event: MessageLoadErrorEvent) => void

A callback when the view fails to load a message with an error.

onLoadFinished?: (event: MessageLoadFinishedEvent) => void

A callback when the view finishes loading a message.

onLoadStarted?: (event: MessageLoadStartedEvent) => void

A callback when the view starts loading a message.

style?: ViewStyle