1.4.5 • Published 2 months ago

@veyetals/react-veyetals-view v1.4.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

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 ©

1.4.5

2 months ago

1.4.4-alpha.8

2 months ago

1.4.4-alpha.3

3 months ago

1.4.4-alpha.2

3 months ago

1.4.4-alpha.7

2 months ago

1.4.4-alpha.6

2 months ago

1.4.4-alpha.5

3 months ago

1.4.4-alpha.4

3 months ago

1.4.4-alpha.1

3 months ago

1.4.4

4 months ago

1.4.3

4 months ago

1.4.2

4 months ago

1.4.1

4 months ago

1.4.0

5 months ago

1.3.9

5 months ago

1.3.8

5 months ago

1.3.7

7 months ago

1.3.6-alpha.7

9 months ago

1.3.6-alpha.5

9 months ago

1.3.6-alpha.6

9 months ago

1.3.6-alpha.4

9 months ago

1.3.6-alpha.3

9 months ago

1.3.6-alpha.2

9 months ago

1.3.6-alpha.1

9 months ago

1.3.6

10 months ago

1.3.5

10 months ago

1.3.4

10 months ago

1.2.0

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.3.3

2 years ago

1.2.4

2 years ago

1.3.2

2 years ago

1.2.3

2 years ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.9

2 years ago

1.0.0

2 years ago