Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@heytea/react-native-heytea-qrcode

heytea6MIT2.0.2TypeScript support: included

@heytea/react-native-heytea-qrcode

react-native

readme

react-native-heytea-qrcode

扫二维码/从相册加载二维码 rn插件

install

yarn add @heytea/react-native-heytea-qrcode

use

export interface ScanResult {
    result: string;
    scanType: string;
}

/**
 * 扫码哦
 * @returns {Promise<ScanResult | null>} 扫码结果
 */
export function scanQRCode(): Promise<ScanResult | null>;