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:43:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2018-04-18 18:43:34 +0800
Commit
7ff2f3a8754a59db3e96edf2b799068380405d2b
7ff2f3a8
1 parent
d72a50ba
Update README.md
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
README.md
README.md
View file @
7ff2f3a
...
...
@@ -13,12 +13,13 @@ react-native 识别照片二维码
## Usage
### NOTE: 可以参考Example的App.js中的openPhoto方法
```
javascript
import
{
readerQR
}
from
'react-native-lewin-qrcode'
//path 图片文件的路径
readerQR
(
path
).
then
((
data
)
=>
{
//path 图片文件的路径
readerQR
(
path
).
then
((
data
)
=>
{
Alert
.
alert
(
'识别结果'
,
data
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
Alert
.
alert
(
'识别失败'
);
});
```
javascript
});
```
...
...
Please
register
or
login
to post a comment