Package Exports
- @cardscan.ai/insurance-cardscan-react
- @cardscan.ai/insurance-cardscan-react/dist/index.es.js
- @cardscan.ai/insurance-cardscan-react/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cardscan.ai/insurance-cardscan-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CardScan.ai: React Widget
CardScan.ai is the fastest way to add health insurance card scanning to your mobile or web application.

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.
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.