lizhiyu

添加注释

... ... @@ -10,7 +10,7 @@
"react": "latest",
"react-native": "latest",
"react-native-image-picker": "^0.26.7",
"react-native-lewin-qrcode": "git://github.com/LewinJun/react-native-lewin-qrcode.git#1.0"
"react-native-lewin-qrcode": "^1.0.0"
},
"devDependencies": {
"babel-jest": "22.4.3",
... ...
... ... @@ -4303,9 +4303,9 @@ react-native-image-picker@^0.26.7:
version "0.26.7"
resolved "http://registry.npm.taobao.org/react-native-image-picker/download/react-native-image-picker-0.26.7.tgz#ad2ee957f7f6cc01396893ea03d84cb2adb2e376"
"react-native-lewin-qrcode@git://github.com/LewinJun/react-native-lewin-qrcode.git#1.0":
react-native-lewin-qrcode@^1.0.0:
version "1.0.0"
resolved "git://github.com/LewinJun/react-native-lewin-qrcode.git#69fae1cccbaa8961250f874794e4576861786bf3"
resolved "https://registry.npmjs.org/react-native-lewin-qrcode/-/react-native-lewin-qrcode-1.0.0.tgz#5594a9334398f2689dc2ae540abe6182f2459b5c"
react-native@latest:
version "0.55.3"
... ...
... ... @@ -2,8 +2,11 @@
'use strict'
const { NativeModules } = require('react-native');
export const readerQR= (fileUrl)=>{
/**
* 识别照片中的二维码
* @param {string} fileUrl 本地图片地址
*/
export const readerQR= (fileUrl)=>{
var QRScanReader = NativeModules.QRScanReader;
return QRScanReader.readerQR(fileUrl);
}
\ No newline at end of file
}
\ No newline at end of file
... ...
{
"name": "react-native-lewin-qrcode",
"version": "1.0.0",
"description": "二维码识别",
"version": "1.0.1",
"description": "二维码识别,选择相册里面的一张照片进行识别二维码",
"main": "index.js",
"nativePackage": true,
"scripts": {
... ... @@ -12,7 +12,11 @@
"url": "git+https://github.com/LewinJun/react-native-lewin-qrcode.git"
},
"keywords": [
"qrcode"
"qrcode",
"react",
"二维码",
"识别",
"native"
],
"author": "lewin",
"license": "ISC",
... ...