diff --git a/ios/FastImage/FFFastImageView.m b/ios/FastImage/FFFastImageView.m index ec2f181..f2a966f 100644 --- a/ios/FastImage/FFFastImageView.m +++ b/ios/FastImage/FFFastImageView.m @@ -4,6 +4,7 @@ BOOL hasSentOnLoadStart; BOOL hasCompleted; BOOL hasErrored; + NSDictionary* sizeParams; } - (void)setResizeMode:(RCTResizeMode)resizeMode @@ -24,7 +25,7 @@ - (void)setOnFastImageLoad:(RCTBubblingEventBlock)onFastImageLoad { _onFastImageLoad = onFastImageLoad; if (hasCompleted) { - _onFastImageLoad(@{}); + _onFastImageLoad(sizeParams); } } @@ -108,6 +109,7 @@ @"width":[NSNumber numberWithDouble:image.size.width], @"height":[NSNumber numberWithDouble:image.size.height] }; + sizeParams = params; if (_onFastImageLoad) { _onFastImageLoad(params); } diff --git a/package.json b/package.json index 051429d..6b6a3f7 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "image", "priority" ], - "homepage": "https://github.com/DylanVann/react-native-fast-image#readme", + "homepage": "https://github.com/ligen52/react-native-fast-image#readme", "bugs": { - "url": "https://github.com/DylanVann/react-native-fast-image/issues" + "url": "https://github.com/ligen52/react-native-fast-image/issues" }, "license": "MIT", "author": "Dylan Vann (http://dylanvann.com)", @@ -30,7 +30,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/DylanVann/react-native-fast-image.git" + "url": "git+https://github.com/ligen52/react-native-fast-image.git" }, "scripts": { "format": "prettier --write --no-semi --single-quote --trailing-comma all ./index.js ./ReactNativeFastImageExample/FastImage/*.js ./react-native-fast-image-server/*.js",