taro-code
Version:
Taro.js barcode & qrcode, Image & Canvas
18 lines (17 loc) • 501 B
TypeScript
import React, { CSSProperties } from 'react';
import Taro from '@tarojs/taro';
export interface BarcodeProps {
className?: string;
text: string;
scale?: number;
width?: number;
height?: number;
style?: CSSProperties;
foregroundColor?: string;
backgroundColor?: string;
rootSelector?: string;
}
declare const BarcodeCanvas: React.ForwardRefExoticComponent<BarcodeProps & React.RefAttributes<{
canvas?: Taro.Canvas | undefined;
}>>;
export default BarcodeCanvas;