You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

taro-code-creator

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taro-code-creator

Code for taro,Supports generating barcodes and QR codes

1.0.6
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

taro-code-creator

Supports generating barcodes and QR codes

Supporting platforms

weapp h5 tt swan alipay qq rn

Installing

yarn add taro-code-creator

Basic Usage

import CodeCreator from "taro-code-creator";

const App = () => {
  return (
    <>
      <CodeCreator
        codeText="test"
        size={420}
        logo={defaultHeadSculpture}
        logoSize={88}
      />
      <CodeCreator type="bar" width={400} height={100} codeText="test" />
    </>
  );
};

img

Component API

Based on taro-code-creator

PropDescriptionDefaulttype
typecode typeqrall
codeTextQR code contentall
colorQR code color#000all
backgroundColorQR code background color#fffall
sizeQR code size200qr
logologo url``qr
logoSizeLogo size60qr
callbackCallback function for generating QR codesall
widthbarcode widthbar
heightbarcode heightbar
formatbarcode formatbar

Keywords

react-native

FAQs

Package last updated on 07 Aug 2024

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