@cardscan.ai/insurance-cardscan-react
TypeScript icon, indicating that this package has built-in type declarations

3.0.9 • Public • Published

CardScan.ai: React Widget

CardScan.ai is the fastest way to add health insurance card scanning to your mobile or web application.


drawing




CardScan.ai has UI widgets to support scanning on web, mobile web, native iOS and Android. Or use the API to build your own implementation.


Widget Features:

  • Smart Card Detection
  • Auto & Manual Capture
  • Customizable User Prompts
  • Browser/Device Permission Helper
  • Retrying Failed & Low-Quality Scans
  • Responsive UI
  • Web to Mobile Handoff

drawing


Basic Example:

import React from "react";
import { render } from "react-dom";
import {CardScanView} from "@cardscan.ai/insurance-cardscan-react";

function onSuccess(card: any) {
  console.log("new card: ", card);
}

// See Authentication on where to get this token.
const token = 'JWT_TOKEN'

// Render CardScanView
render(
  <CardScanView
    live={false}
    sessionToken={token}
    onSuccess={onSuccess}
    />
  ,document.getElementById("root")
);

Checkout the full docs and React Widget docs.

Package Sidebar

Install

Weekly Downloads

411

Version

3.0.9

License

SEE LICENSE IN LICENSE.md

Unpacked Size

2.63 MB

Total Files

41

Last publish

Collaborators

  • nickls
  • cardscan