![]() Instead, you'll need to copy your unique URL and share it via your own communication channels, or send them an invitation email via Cheddar Up (with the link embedded).įrom the Share step, there are four main ways to share your collection, including: If you are doing that using a callback in a button in the screen then the issue should be around the code setting the ref.Once you've built your collection, it's time to share it! Your payers will not be able to find your collection by visiting. Your issue seems to be that svg is not defined when you call svg.toDataURL how are you calling the function? If you are doing that on the first render it is possible that the ref is not ready yet. Main changes from your code is defining the callback as a function // you hadĪnd doing the call properly on getDataURL // you hadĪfter those changes clicking in the button returns the dataURL in the console as expected. Open up App.tsx to start working on your app! Import QRCode from "react-native-qrcode-svg" ![]() What I tried to do (all my code): import React, from "react-native" I tried " get base64 string encode of the qrcode" from official documentation, but I just don't get it //From Off Doc import QRCode from 'react-native-qrcode-svg' Generate QR works, but I want to share it as an image (whatsapp, bluetooth, etc).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |