Taha Ateş
Taha Ateş

Reputation: 141

Creating QR code to redirect phone's contacts

I'm trying to build a REACT NATIVE application to generate a QR code in the application and save some contact information in that QR code.

And if another phone scans that QR is generated before QR will redirect the phone to contacs addition page.

Is it possible, and if is how can i manage that?

I already think that somehow we can create a vcf file into a qr code reader, is it possible? Or is there any better solution to my problem?

fyi: Vcard

fyi2: React native QR code package

Upvotes: 0

Views: 628

Answers (1)

Hamoghamdi
Hamoghamdi

Reputation: 61

Yes it is possible.

First you have to generate the vcard, check this library: react-native-vcards

then you should put const qrValue = contact.getFormattedString() in the <QRCode value={qrValue} ...> using the library you shared

Upvotes: 0

Related Questions