GuidesComponentsjournal

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.surface background
  • 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

Last updated on

On this page