Skip to main content

DiaryCard.MeasuredValue

Displays a measured value with unit and timestamp. Inherited from the Tile module and themed for consistency across diary cards.

Basic Example

import { MeasurementTypeKey } from "@ovok/core";
import { DiaryCard } from "@ovok/native";
import * as React from "react";

const BasicDiaryCardMeasuredValueExample = () => {
return <DiaryCard.MeasuredValue value="70" unit="kg" time="15:34" />;
};

export default BasicDiaryCardMeasuredValueExample;

Props

Extends basic View style props.

Primary Props

PropTypeDefaultDescription
valuestringrequiredThe measured value to display
unitstringrequiredUnit string shown next to the value
timestringrequiredTime string displayed below
styleStyleProp<ViewStyle>undefinedContainer style override
testIDstringundefinedTest identifier

Styling

Theme Colors Used

  • theme.colors.primary - Value color
  • theme.colors.onSurfaceDisabled - Unit and time colors