1.0.1 • Published 4 years ago

@mudit_26/react-native-qr-code v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-native-qr-code

A QR Code generator for React Native based on @react-native-community/art.

Installing module

Please install @react-native-community/art first.

yarn add @react-native-community/art

or

npm install @react-native-community/art --save

and

yarn add @mudit_26/react-native-qr-code

or 

npm install @mudit_26/react-native-qr-code --save

Linking module

Mostly automatic linking

For react-native >= 0.60 ReactNativeART should be autolinked and no additional action is required.

For react-native < 0.60 you need to link ReactNative ART:

react-native link @react-native-community/art

For any difficulty while linking @react-native-community/art follow https://github.com/react-native-community/art/blob/master/README.md

Usage

import QRCode from '@mudit_26/react-native-qr-code';

render() {
  return (
    <QRCode
      value='Hello World!'
    />
  );
};

Props

NameTypeDescriptionDefault
sizeNumberCurrent position in steps100
valueStringString Value of the QR codesHello World!
colorStringColor of the QR codeblack
styleObjectCustom styling{}
backgroundColorStringColor of the backgroundwhite

Dependencies

PeerDependencies

Dependencies