Aaron Louie 0a16a7b4f9 WIP: Displays QRCode instead of 1D barcode
Former-commit-id: 5a7dd6b7582fa2dea2131d4997eb6d0b8234eead
2020-09-02 17:09:49 -04:00

32 lines
684 B
TypeScript

import {BarCodeScannedCallback} from 'expo-barcode-scanner';
import {BarcodeScannerAppState} from './BarcodeScannerAppState';
export interface ElementProps {
title?: string;
}
export interface StateProps extends ElementProps {
appState: BarcodeScannerAppState;
}
export interface BarCodeProps extends ElementProps {
id: string;
barCodeId: string;
date: Date;
location: string;
svg: any;
}
export interface ButtonProps extends ElementProps {
onClicked: () => void;
}
export interface ScannerProps extends ElementProps {
onScanned: BarCodeScannedCallback;
onCancel: () => void;
}
export interface PrintingProps extends BarCodeProps {
onCancel: () => void;
}