@ovok/native/measurement
Measurement list components.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
Measurement list components.
Import from @ovok/native/measurement.
Components
MeasurementList
const MeasurementList: MeasurementListComponent;List of measurements; use MeasurementList.Item and MeasurementList.DateRange as building blocks.
Type Aliases
DateRangeProps
type DateRangeProps = object;Props for the date range navigator.
Properties
disabledNext?
disabledNext?: boolean;Disables the next-range button.
disabledPrevious?
disabledPrevious?: boolean;Disables the previous-range button.
onDateChange?
onDateChange?: ({ startDate, endDate }) => void;Called with the new start and end dates when the user moves to another range.
Parameters
| Parameter | Type |
|---|---|
{ startDate, endDate } | OnDateChangeProps |
Returns
void
startDate
startDate: string;First day of the shown range, as an ISO date string.
style?
style?: StyleProp<ViewStyle>;Style for the container.
testID?
testID?: string;Test identifier for the container.
variant
variant: "week" | "month" | "year";Length of the range: a week, month or year.
MeasurementListItemProps
type MeasurementListItemProps<T> = TouchableOpacityProps & object;Props for MeasurementListItem; also accepts TouchableOpacity props.
Type Parameters
Type Declaration
| Name | Type | Description |
|---|---|---|
badge? | ReactNode | Badge shown on the item. |
data | object & T | The measurement to display, plus any extra fields of type T. |
style? | StyleProp<ViewStyle> | Style for the item container. |
testID? | string | Test identifier for the item. |
Last updated on