Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lewinjun/react-native-lewin-qrcode
react-native 识别照片二维码
https://github.com/lewinjun/react-native-lewin-qrcode
android imageqrcode ios photoqrcode qrcode react-native
Last synced: about 1 month ago
JSON representation
react-native 识别照片二维码
- Host: GitHub
- URL: https://github.com/lewinjun/react-native-lewin-qrcode
- Owner: LewinJun
- Created: 2018-04-18T07:24:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T22:42:29.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T02:46:59.042Z (2 months ago)
- Topics: android, imageqrcode, ios, photoqrcode, qrcode, react-native
- Language: Java
- Size: 1.03 MB
- Stars: 43
- Watchers: 3
- Forks: 13
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-lewin-qrcode
react-native 识别照片二维码## Table of contents
- [Install](#install)
- [Usage](#usage)## Install
### 1: yarn add 或者npm install,现在最新版本是1.1.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方法```javascript
import {readerQR} from 'react-native-lewin-qrcode'
//path 图片文件的路径
readerQR(path).then((data)=>{
Alert.alert('识别结果',data);
}).catch((err)=>{
Alert.alert('识别失败');
});
```