Tile.NoMeasuredValue
Placeholder component that displays helpful text when no measurement data is available, with support for custom content and localization.
Quick Example
import React from "react";
import { Tile } from "@ovok/mobile";
export const NoMeasuredValueExample = () => {
return (
<Tile>
<Tile.NoMeasuredValue testID="no-data-placeholder" />
</Tile>
);
};
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
children | ReactNode | - | - | Custom content to display instead of default |
Inherits all TextProps from React Native Paper except children
Component Behavior
The NoMeasuredValue component:
- Default Text: Shows localized "No measured value" message when no children provided
- Custom Content: Supports custom text or components via children prop
- Typography: Uses consistent small text styling (13px, regular weight)
- Placeholder Role: Indicates missing data state to users
Localization
Default Translation
The component uses this translation key by default:
{
"tile": {
"no-measured-value": "No data available"
}
}
tile.no-measured-value- Default placeholder text for missing measurements
Related Components
- Tile.MeasuredValue - Displays actual measurement data
- Tile.MeasuringSpinner - Loading state during measurement
- Tile.Status - Device connection status information