Chat
The conversational Chat component — a messaging-style interface for the assessment flow
A conversational chat-based interface for the same assessment flow. The user progresses through the same stages (terms, onboarding, questions, report) but via a messaging-style UI.
Chat must be rendered inside the SDK's providers — see Getting Started for the required ThemeProvider and AssessmentProvider setup.
Usage
The component accepts an optional onExit callback. When provided, a back button is displayed on the first screen of the flow, allowing the user to exit. If onExit is omitted, no back button is shown.
import { Chat } from "@yourmd/yourmd-react-native";
// With exit button — a back button appears on the first screen
<Chat
onExit={() => {
// Navigate away from the chat assessment
}}
/>
// Without exit button — no back button is shown
<Chat />Updated about 12 hours ago
Did this page help you?
