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/native";
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
Translation key
The component requests this translation key when no children are supplied:
{
"tile": {
"no-measured-value": "No data available"
}
}
tile.no-measured-value- Placeholder key for missing measurements. Define it in the app's i18next resources; the SDK does not ship a default locale, so an absent resource can render the raw key.
Related Components
- Tile.MeasuredValue - Displays actual measurement data
- Tile.MeasuringSpinner - Loading state during measurement
- Tile.Status - Device connection status information