- bar-code
- qr-code container-style
- qr-code-inside-image-container-style
- IOS && Android
- render the qrcode
- add the img
- size the img size
Name | Default | Type | Description |
---|---|---|---|
size | 150 | number | |
value | https://github.com/Timson020/ | string | string value |
bgColor | black | string | color |
fgColor | white | string | color |
imgUrl | '' | string | url string |
imgSize | 0.4 | number | percentage, don't bigger than 1 |
npm install react-native-image-qrcode -S
import QRCode from 'react-native-image-qrcode'
<QRCode value="https://github.com/Timson020/" size="150" imgUrl="https://avatars3.githubusercontent.com/u/10054336?s=460&v=4" />