Skip to content

Commit c1ec431

Browse files
authored
Merge pull request #2433 from didi/feat-getImageInfo-addpath
getImageinfo方法RN下增加网络图片的path
2 parents 5355cf6 + 9e231fb commit c1ec431

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/api-proxy/src/platform/api/image/index.ios.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ const getImageInfo = function (options = {}) {
2222
failHandle(result, fail, complete)
2323
return
2424
}
25+
2526
Image.getSize(src, (width, height) => {
2627
const result = {
2728
errMsg: 'getImageInfo:ok',
2829
width,
29-
height
30+
height,
31+
path: src
3032
}
31-
defineUnsupportedProps(result, ['path', 'orientation', 'type'])
33+
defineUnsupportedProps(result, ['orientation', 'type'])
3234
successHandle(result, success, complete)
3335
}, (err) => {
3436
const result = {

0 commit comments

Comments
 (0)