Skip to main content

MeasurementList.Item

MeasurementList.Item is a themed TouchableOpacity row. It displays data.value, data.unit, and data.date, and calls onPress when tapped.

<MeasurementList.Item
data={{ value: "120/80", unit: "mmHg", date: "2024-01-15T08:30:00Z" }}
onPress={openMeasurement}
/>

data is required and has the shape { value: string; unit: string; date: string } plus optional caller fields. The date is formatted with date-fns as HH:mm, dd.MM.yy using the runtime's date interpretation. Although the public type extends TouchableOpacityProps, the implementation consumes only style, testID, and onPress; other touch/accessibility props and arbitrary children are not forwarded.