diff --git a/Example/src/App.tsx b/Example/src/App.tsx
index 1cdd7a0..885f19b 100644
--- a/Example/src/App.tsx
+++ b/Example/src/App.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import {SafeAreaView, ScrollView, Text} from 'react-native';
+import {SafeAreaView, ScrollView, Text, View} from 'react-native';
import SVG from './assets/ruby.svg';
import Description from './components/Description';
import QRCode from 'react-native-qrcode-svg';
@@ -50,6 +50,21 @@ const localPngQRCode = (
);
+const localTransparentPngQRCode = (
+
+
+
+
+
+);
+
const localPngBackgroundColorQRCode = (
{
{colorfulQRCODe}
{urlPngQRCode}
{localPngQRCode}
+ {localTransparentPngQRCode}
{localPngBackgroundColorQRCode}
{urlSvgQRCode}
{stringSvgQRCode}
diff --git a/src/index.js b/src/index.js
index 6af8f01..86f8ff8 100644
--- a/src/index.js
+++ b/src/index.js
@@ -122,6 +122,9 @@ const QRCode = ({
const { path, cellSize } = result;
const displayLogo = logo || logoSVG;
+ const logoPosition = (size - logoSize - logoMargin * 2) / 2;
+ const logoPositionEnd = logoPosition + logoSize + logoMargin * 2;
+
return (
+
+
+
{displayLogo &&