New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-custom-qr-codes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-custom-qr-codes

A customisable QR code component for React Native applications.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

example-qr-code-1 react-native-custom-qr-codes example-qr-code-3

Customisable QR Codes for React Native.

react-native-custom-qr-codes

Installation

.

Usage

import QRCode from 'react-native-custom-qr-codes';

<QRCode content='https://reactnative.com'/>

Properties

PropDescriptionDefault
contentThe String to be encoded in the QR code.'No Content'
codeStyleThe style of the centre QR Code pieces.square
outerEyeStyleThe style of the outside of the QR Code's eyes.square
innerEyeStyleThe style of the inside of the QR Code's eyes.square
sizeThe width & height of the component.250
colorThe color of the QR Code.black
backgroundColorThe background color of the component.white
paddingThe padding between the edge of the component and the QR Code itself (In terms of QR code piece sizes).1
logoThe image to be put in the centre of the QR Code.
Must use a higher ecl for QR Code to work with a logo.
(L->M->Q->H)
none
logoSizeThe size of the logo in the QR Code.none
linearGradientThe two colors to be used for the linear gradient for the foreground.none
gradientDirectionThe numbers that define the orientation of the linear gradient.[0,0,170,0]
backgroundImageThe image to be used as the filling of the QR Code pieces.
The Eyes can not be styled if a background image is used.
none
eclThe error correction level of the QR Code.L

Examples

codeStyle

<QRCode codeStyle='square' />
<QRCode codeStyle='circle' />
<QRCode codeStyle='dot' />
<QRCode codeStyle='diamond' />
<QRCode codeStyle='sharp' />

outerEyeStyle

<QRCode outerEyeStyle='square' />
<QRCode outerEyeStyle='circle' />
<QRCode outerEyeStyle='diamond' />

innerEyeStyle

<QRCode innerEyeStyle='square' />
<QRCode innerEyeStyle='circle' />
<QRCode innerEyeStyle='diamond' />
<QRCode logo={require('./dab.png')} />

linearGradient

<QRCode linearGradient={['rgb(255,0,0)','rgb(0,255,255)']} />
<QRCode linearGradient={['rgb(255,0,0)','rgb(0,255,255)']} gradientDirection={[0,170,0,0]} />

backgroundImage

<QRCode backgroundImage={require('./galaxy.png')} />

Contributing

Take a look at CONTRIBUTING.md 😁

TODO:

  • Write code contribution guide
  • Write up design contribution guide
  • Upload the package to npm

License

MIT License. © Geoffrey Natin 2017

Keywords

FAQs

Package last updated on 11 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc