@veyetals/react-veyetals-view

1.4.5 • Public • Published

react-veyetals-view

NPM JavaScript Style Guide

Install

npm install --save react-veyetals-view

*Copy models folder from package directory into public folder of application.

Usage

userId: Required* Unique Id of user.

channelId: Required* Unique channel ID/company name. Maximum length: 128 characters. May include numbers, letters, underscores (_), and hyphens (-)

onComplete: Function to be called when user clicks OK button on popup modal once veyetals scanning is complete. Final vital results passed to function.

showUI: Enable or disable Veyetals' cards to be shown; Default is true.

modelPath: Path to modal folder; Default is process.env.PUBLIC_URL + '/models'.

import React, { useState } from 'react'

import VeyetalsView from '@veyetals/react-veyetals-view'
import '@veyetals/react-veyetals-view/dist/index.css'

export default function App() {

  const [userId, setUserId] = useState('test-user');
  const [channelId, setChannelId] = useState('test-channel');
  const [showUI, setShowUI] = useState('true');

  const onComplete = (vitals) => {
    // triggers when user clicks "OK" button on modal that pops up when scanning is complete
    // final vital results
    console.log(vitals)
  };

  return (
    <VeyetalsView
      userId={userId}
      channelId={channelId}
      onComplete={onComplete}
      showUI={showUI}
      modelPath={'./path to model file'}
    />
  )
}

License

MIT ©

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.6-alpha.30no-bp-glucose-snr
1.4.53latest
1.4.4-alpha.80dev

Version History

VersionDownloads (Last 7 Days)Published
1.4.53
1.4.4-alpha.80
1.4.4-alpha.70
1.4.4-alpha.60
1.4.4-alpha.50
1.4.4-alpha.20
1.4.4-alpha.10
1.4.40
1.4.30
1.4.20
1.4.10
1.4.00
1.3.90
1.3.80
1.3.70
1.3.6-alpha.70
1.3.6-alpha.60
1.3.6-alpha.40
1.3.6-alpha.30
1.3.6-alpha.20
1.3.6-alpha.10
1.3.60
1.3.50
1.3.40
1.3.30
1.3.20
1.3.10
1.3.00
1.2.90
1.2.80
1.2.70
1.2.60
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.00

Package Sidebar

Install

npm i @veyetals/react-veyetals-view

Weekly Downloads

3

Version

1.4.5

License

MIT

Unpacked Size

5.99 MB

Total Files

27

Last publish

Collaborators

  • hassanmarkitech