@ovok/native/wearables

Wearable provider icons and wearable source types.

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

Wearable provider icons and wearable source types.

Import from @ovok/native/wearables.

Components

WearableProviderIcon()

function WearableProviderIcon(__namedParameters): Element;

Monogram icon in the brand color of a wearable provider.

Parameters

ParameterType
__namedParametersWearableProviderIconProps

Returns

Element

Type Aliases

WearableProviderBrand

type WearableProviderBrand = object;

Display brand of a wearable provider.

Properties

color
color: string;

Brand color as a hex string.

monogram
monogram: string;

Letter shown in the icon.

name
name: string;

Provider display name.


WearableProviderIconProps

type WearableProviderIconProps = object;

Props of WearableProviderIcon.

Properties

provider
provider: WearableSource;

Provider whose icon is drawn.

size?
size?: number;

Icon width and height in pixels.


WearableSource

type WearableSource = WearableProvider | "apple-health" | "health-connect";

A cloud wearable from @ovok/core, or a health store on the phone.

Variables

WEARABLE_PROVIDERS

const WEARABLE_PROVIDERS: Record<WearableSource, WearableProviderBrand>;

Brand of each wearable provider, keyed by source.

Last updated on

On this page