Aaron Louie c36d4ecafa Prints QR Code
Former-commit-id: d6f5be66263cc38ba56f0dd5e268ef0facd80800
2020-09-03 18:27:44 -04:00

31 lines
672 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;
}
export interface ButtonProps extends ElementProps {
onClicked: () => void;
}
export interface ScannerProps extends ElementProps {
onScanned: BarCodeScannedCallback;
onCancel: () => void;
}
export interface PrintingProps extends BarCodeProps {
onCancel: () => void;
}