Skip to content

sbwdlihao/react-native-lewin-qrcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-lewin-qrcode

react-native 识别照片二维码

Table of contents

Install

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

yarn add react-native-lewin-qrcode

2: yarn install 或 npm install

3: react-native link react-native-lewin-qrcode

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('识别失败');
});

About

react-native 识别照片二维码

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 52.8%
  • Objective-C 25.9%
  • JavaScript 11.1%
  • Python 7.5%
  • Ruby 2.7%