1.0.1 • Published 2 years ago
taro-qrcode v1.0.1
taro-svga
Supporting platforms
weapp h5 tt swan alipay qq rn
Installing
yarn add taro-svgaExtra Installing For React Native
Based on react-native-qrcode-svg
android
react-native link react-native-qrcode-svgOR auto link
Go to your ios folder and run:
pod installBasic Usage
import QrCode from "taro-qrcode";
const App = () => {
return <QrCode codeText="123" />;
};Component API
Based on taro-qrcode
| Prop | Description | Default | Platform |
|---|---|---|---|
| codeText | QR code content | all | |
| color | QR code color | #000 | all |
| backgroundColor | QR code background color | #fff | all |
| size | QR code size | 200 | all |
| logoSize | Logo size | 60 | all |
| callback | Callback function for generating QR codes | all |
1.0.1
2 years ago