Skip to main content

ObservationDetail.SingleCardDataRow

A label-value data row component designed for structured display of healthcare information. Provides consistent spacing, typography, and layout for observation data presentation.

Basic Example

import { ObservationDetail } from "@ovok/native";
import * as React from "react";

const BasicMedicalData = () => (
<>
<ObservationDetail.SingleCardDataRow label="Systolic (mmHg)" value="120" />
<ObservationDetail.SingleCardDataRow label="Diastolic (mmHg)" value="80" />
<ObservationDetail.SingleCardDataRow label="Heart Rate (bpm)" value="72" />
</>
);

export default BasicMedicalData;

Props

NameTypeRequiredDefaultDescription
labelstring-Label text for the data row
valuestring-Value text to display
styleStyleProp<ViewStyle>--Custom container styles
labelStyleStyleProp<TextStyle>--Custom label text styles
valueStyleStyleProp<TextStyle>--Custom value text styles
labelTestIDstring--Test ID for label text
valueTestIDstring--Test ID for value text

Inherits all props from ViewProps

Component Behavior

Layout System

  • Uses flexbox row layout with space-between alignment
  • Label text is flexible and can wrap
  • Value text is right-aligned and fixed-width
  • Consistent vertical padding and alignment

Typography

  • Standard 16px font size for both label and value
  • Normal font weight (400) for medical data readability
  • Inherits theme typography when available

Styling

Theme Colors Used

  • theme.spacing(4) - Vertical padding (16px default)
  • theme.spacing(6) - Horizontal padding (24px default)