Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Phecda
/
react-native-lewin-qrcode
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Network
Create a new issue
Builds
Commits
Authored by
LewinJun
2018-04-18 18:37:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2018-04-18 18:37:38 +0800
Commit
c636b483963589581ff948bdc8f79277894ee2dd
c636b483
1 parent
7686e1cb
Create README.md
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
README.md
README.md
0 → 100644
View file @
c636b48
# react-native-lewin-qrcode
react-native 识别照片二维码
## Table of contents
-
[
Install
](
#install
)
-
[
Usage
](
#usage
)
## Install
### 1: 暂时没有发布到npm所以需要自己手动添加到dependencies
`"react-native-lewin-qrcode": "git://github.com/LewinJun/react-native-lewin-qrcode.git#1.0"`
### 2: yarn install 或 npm install
### 3: react-native link react-native-lewin-qrcode
## Usage
```
javascript
import
{
readerQR
}
from
'react-native-lewin-qrcode'
//path 图片文件的路径
readerQR
(
path
).
then
((
data
)
=>
{
Alert
.
alert
(
'识别结果'
,
data
);
}).
catch
((
err
)
=>
{
Alert
.
alert
(
'识别失败'
);
});
```
javascript
...
...
Please
register
or
login
to post a comment