Socket
Book a DemoInstallSign in
Socket

react-native-lewin-qrcode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-lewin-qrcode

二维码识别,选择相册里面的一张照片进行识别二维码

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
12
Maintainers
1
Weekly downloads
 
Created
Source

react-native-lewin-qrcode

react-native 识别照片二维码

Table of contents

  • Install
  • Usage

Install

1: yarn add 或者npm install,现在最新版本是1.0.0

yarn add react-native-lewin-qrcode

2: yarn install 或 npm install

Usage

NOTE: 可以参考Example的App.js中的openPhoto方法

import {readerQR} from 'react-native-lewin-qrcode'
//path 图片文件的路径
readerQR(path).then((data)=>{
  Alert.alert('识别结果',data);
}).catch((err)=>{
   Alert.alert('识别失败');
});

Keywords

qrcode

FAQs

Package last updated on 25 May 2020

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.