PastJournalCard
The PastJournalCard component displays completed journal entries and questionnaire responses in a Material Design card format. It provides a structured layout for showing historical health data, patient responses, and journal content.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
The PastJournalCard component displays completed journal entries and questionnaire responses in a Material Design card format. It provides a structured layout for showing historical health data, patient responses, and journal content.
PastJournalCard.Content is the raw react-native-paper Card.Content export;
it is not an SDK wrapper with a separate prop contract.
Basic Example
import { PastJournalCard } from "@ovok/native";
import * as React from "react";
const BasicPastJournalCard = () => (
<PastJournalCard>
<PastJournalCard.Content>
<PastJournalCard.Date>Date</PastJournalCard.Date>
<PastJournalCard.Title>Title</PastJournalCard.Title>
<PastJournalCard.Answer>Answer</PastJournalCard.Answer>
</PastJournalCard.Content>
</PastJournalCard>
);
export default BasicPastJournalCard;Props
Every prop, with its type and description, is listed in the @ovok/native/journal API reference.
Component Behavior
Card Design
- Mode: Uses
"contained"mode for Material Design 3 elevation - Background: Automatically applies
theme.colors.surfacebackground - Elevation: Fixed card elevation for consistent appearance
Theme Integration
- Surface Color: Uses theme surface color for proper contrast
- Content Styling: Child components inherit theme colors
- Dark Mode: Automatically adapts to dark/light theme changes
Styling
Theme Colors Used
theme.colors.surface- Card background color
Related Components
PastJournalCard.Title- Title text componentPastJournalCard.Date- Date display componentPastJournalCard.Answer- Answer text componentTodayQuestionCard- Today's question display
Last updated on
Answer.Question
The Answer.Question component displays question text in journal and questionnaire forms. It provides consistent typography and styling for question prompts with emphasis on readability and accessibility.
PastJournalCard.Answer
The PastJournalCard.Answer component renders the answer text of a past journal entry with a subtle color.