Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logo not working #189

Open
budwol opened this issue Nov 11, 2023 · 5 comments
Open

Logo not working #189

budwol opened this issue Nov 11, 2023 · 5 comments

Comments

@budwol
Copy link

budwol commented Nov 11, 2023

     <QRCode
                value="https://urltopage.io"
                logo={
                    {
                        uri: logoPwaUrl,

                    }
                }
                logoSize={64}
                logoBorderRadius={32}
                logoBackgroundColor='white'
                size={256}
            />

Logo is a png. Tested with different sizes (64, 96, 128) as file and base64.

the result looks always like this:

image

what am i doing wrong?

@malikzype
Copy link

malikzype commented Dec 6, 2023

Facing the same issue... we are using react-native-svg 14.1.0 and SVG transformer as 1.1.0 and react native 0.72.4

@malikzype
Copy link

Any update on this?

@juliswer
Copy link

Still not working

@exzos28
Copy link

exzos28 commented May 12, 2024

guys, I faced similar issues and decided to create lib, you can use this - https://www.npmjs.com/package/react-native-qr-svg

@12ya
Copy link
Contributor

12ya commented Aug 14, 2024

logoPwaUrl

if it's a path to a local file use "require":
logo={require('FILE_PATH')}

if it's a url then use :
logo={{ uri: 'https://images.unsplash.com/photo-1723118641%3D%3D', }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants