@mudit_26/react-native-qr-code
v1.0.1
Published
A QR Code generator for React Native based on @react-native-community/art
Downloads
3
Maintainers
Readme
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
| Name | Type | Description | Default
| ------------ | ------------- | ------------ |------------ |
| size
| Number | Current position in steps | 100
| value
| String | String Value of the QR codes | Hello World!
| color
| String | Color of the QR code | black
| style
| Object | Custom styling | {}
| backgroundColor
| String | Color of the background | white