Assessment
The form-based Assessment component — a step-by-step, screen-by-screen guided health assessment flow
A step-by-step assessment flow with a traditional form-based UI. It guides the user through terms acceptance, onboarding (gender and symptom selection), a question-and-answer session, and a final health report.
Assessment 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 { Assessment } from "@yourmd/yourmd-react-native";
// With exit button — a back button appears on the first screen
<Assessment
onExit={() => {
// Navigate away from the assessment
}}
/>
// Without exit button — no back button is shown
<Assessment />Updated about 12 hours ago
What’s Next
Did this page help you?
