react-native-qrcode-styled
Version:
A fully customizable QR Code generator for React Native based on react-native-svg and javascript-qrcode.
21 lines • 1.15 kB
TypeScript
import React from 'react';
import { Svg, SvgProps, ImageProps as SVGImageProps } from 'react-native-svg';
import type { PieceOptions, EyeOptions, AllEyesOptions, RenderCustomPieceItem, BitMatrix, LogoOptions } from '../types';
import type { QRCodeMessage, QRCodeOptions } from '../adapters/qrcode';
export interface SVGQRCodeStyledProps extends QRCodeOptions, PieceOptions, Omit<SvgProps, 'children'> {
data?: QRCodeMessage;
onChangeSize?: (size: number) => void;
pieceLiquidRadius?: number;
outerEyesOptions?: EyeOptions | AllEyesOptions;
innerEyesOptions?: EyeOptions | AllEyesOptions;
renderCustomPieceItem?: RenderCustomPieceItem;
isPiecesGlued?: boolean;
padding?: number;
backgroundImage?: SVGImageProps;
logo?: LogoOptions;
children?: (pieceSize: number, bitMatrix: BitMatrix) => SvgProps['children'];
renderBackground?: (pieceSize: number, bitMatrix: BitMatrix) => SvgProps['children'];
}
declare const forwardedSVGQRCodeStyled: React.ForwardRefExoticComponent<SVGQRCodeStyledProps & React.RefAttributes<Svg>>;
export default forwardedSVGQRCodeStyled;
//# sourceMappingURL=SVGQRCodeStyled.d.ts.map