Commit 1692933a authored by westzmg's avatar westzmg

修改包引用方式

parent 771b23e7
# QB移动端JS_SDK
QB移动端JS_SDK
##安装方式
yarn add https://github.com/westzmg/zhu_wap_bridge.git
##引用方式
yarn add https://github.com/westzmg/zhu_wap_bridge.git
#
#
### 拍摄照片
##### await _Bridge.takePhoto(options)
##### options: {
quality: 0.6, // 图片质量0 to 1
includeBase64: true, // 返回值内是否包含base64
}
##### 详情参考 https://github.com/react-native-image-picker/react-native-image-picker
#
#
### 录制视频
##### await _Bridge.recordVideo(options)
##### options: {
quality: 0.6, // 图片质量0 to 1
}
##### 详情参考 https://github.com/react-native-image-picker/react-native-image-picker
#
#
### 扫描二维码
##### await _Bridge.barCodeScan(options)
##### options: {
quality: 0.6, // 图片质量0 to 1
includeBase64: true, // 返回值内是否包含base64
}
##### 详情参考 https://github.com/react-native-image-picker/react-native-image-picker
......@@ -15,7 +15,7 @@ export const isNative = () => {
/*
* 拍摄照片
* @name takePicture
* @name takePhoto
* @详情参考 https://github.com/react-native-image-picker/react-native-image-picker
* @params opt{
* mediaType: 'photo' or 'video'
......
......@@ -21,7 +21,7 @@ export var isNative = function isNative() {
};
/*
* 拍摄照片
* @name takePicture
* @name takePhoto
* @详情参考 https://github.com/react-native-image-picker/react-native-image-picker
* @params opt{
* mediaType: 'photo' or 'video'
......
......@@ -15,6 +15,11 @@
"react-native-webview-invoke": "^0.5.1"
},
"dependencies": {
"react-native-webview-invoke": "^0.5.1"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"antd-mobile": "^2.3.1",
"lodash": "^4.17.15",
"moment": "^2.24.0",
......@@ -22,14 +27,8 @@
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-eva": "^1.1.7",
"react-native-webview-invoke": "^0.5.1",
"superagent": "^5.1.1",
"umi": "^2.12.2",
"umi-plugin-react": "^1.14.5",
"zhu_wap_test": "https://github.com/westzmg/zhu_wap_bridge.git"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"babel-plugin-syntax-dynamic-import": "^6.18.0"
"umi-plugin-react": "^1.14.5"
}
}
......@@ -17447,22 +17447,6 @@ yeoman-generator@^4.8.2:
grouped-queue "^1.1.0"
yeoman-environment "^2.9.5"
"zhu_wap_test@https://github.com/westzmg/zhu_wap_bridge.git":
version "1.0.0"
resolved "https://github.com/westzmg/zhu_wap_bridge.git#9014f15c559e59db25a0947b151fa34675c870f6"
dependencies:
antd-mobile "^2.3.1"
lodash "^4.17.15"
moment "^2.24.0"
prop-types "^15.7.2"
react "^16.12.0"
react-dom "^16.12.0"
react-eva "^1.1.7"
react-native-webview-invoke "^0.5.1"
superagent "^5.1.1"
umi "^2.12.2"
umi-plugin-react "^1.14.5"
zscroller@~0.4.0:
version "0.4.8"
resolved "https://registry.npm.taobao.org/zscroller/download/zscroller-0.4.8.tgz#69eed68690808eedf81f9714014356b36cdd20f4"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment