GuidesComponentsApp UI components

EcgStripViewer

Render app-provided ECG samples as a paged, scrollable waveform strip.

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

EcgStripViewer renders chronological ECG samples in a scrollable strip with page controls. Pass the samples in millivolts and the sampling rate in samples per second. It is a presentation component; your app extracts and validates the ECG data before rendering.

Import it from @ovok/native/ui.

import { EcgStripViewer } from "@ovok/native/ui";

<EcgStripViewer
  samples={recording.samplesMv}
  sampleRate={recording.sampleRate}
  pageDurationSeconds={10}
  onPageChange={(page, pageCount) => {
    setVisiblePage({ page, pageCount });
  }}
/>;

Props

Every prop, with its type and description, is listed in the @ovok/native/ui API reference.

Last updated on

On this page