Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
The @amazon-devices/@amazon-devices/react-native-qrcode-svg library provides support on Vega for react-native-qrcode-svg, which is a QR Code generator based on react-native-svg and javascript-qrcode. This library is system-deployed and available to React Native for Vega apps without a separate installation process. The library is deployed as an autolinking library, which your app links to at runtime. The library is guaranteed to be compatible only with the version of React Native for Vega for which it’s built. When you uplevel your app’s version of React Native for Vega, consider the best practice of upleveling its library dependencies. For more information about this library and its API, see the README.md in the official GitHub repo.

Installation

  1. Add the JavaScript library dependency in the package.json file. Select the tab for your React Native version.
  1. Due to a known issue with React Native dependencies, you must apply the following workaround: a. Open your .npmrc file in the same directory as your app’s package.json file. If the .npmrc file doesn’t exist, you can add one. b. Add the following line:
  1. Reinstall the dependencies using the npm install command.

Examples

The following is a example of creating a QRcode using the default settings:
The following is a example of creating a QR code and applying some formatting:

API support

Component API

Implementation details

Known issues

Your app might crash if you use the react-native-qrcode-svg library and try to import the TextEncoder property. To work around this issue, add a dependency on fast-text-encoding to your app. In your app’s package.json file, add the following code to the dependencies section:
In the place where you imported the react-native-qrcode-svg library, import fast-text-encoding.

Supported versions

Additional Resources

For information on other libraries, see Supported Third-Party Libraries and Services.
Last modified on July 10, 2026