diff --git a/package.json b/package.json index 0aa0569..aa43ddf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@procivis/one-react-native-components", - "version": "0.1.33", + "version": "0.1.34", "description": "Common Procivis ONE UI components for react-native", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/credential/credential-carousel-images.tsx b/src/credential/credential-carousel-images.tsx index 1c57f7c..b11dcfd 100644 --- a/src/credential/credential-carousel-images.tsx +++ b/src/credential/credential-carousel-images.tsx @@ -62,18 +62,19 @@ export const Barcode: FC = ({ content, width = 220, height = 80, t type QrCodeProps = { content: string; + padding?: number; testID?: string; }; -export const QrCode: FC = ({ content, testID }) => { +export const QrCode: FC = ({ content, padding, testID }) => { const qrCodeXml = useMemo(() => { return new QRCode({ container: 'svg-viewbox', content, join: true, - padding: 1, + padding: padding ?? 1, }).svg(); - }, [content]); + }, [content, padding]); return ; };