diff --git a/ios/FastImage/FFFastImageView.m b/ios/FastImage/FFFastImageView.m index 97d517fa9..d4d8bbfec 100644 --- a/ios/FastImage/FFFastImageView.m +++ b/ios/FastImage/FFFastImageView.m @@ -31,14 +31,14 @@ - (void)setResizeMode:(RCTResizeMode)resizeMode { } } -- (void)setOnFastImageLoadEnd:(RCTBubblingEventBlock)onFastImageLoadEnd { +- (void)setOnFastImageLoadEnd:(RCTDirectEventBlock)onFastImageLoadEnd { _onFastImageLoadEnd = onFastImageLoadEnd; if (self.hasCompleted) { _onFastImageLoadEnd(@{}); } } -- (void)setOnFastImageLoad:(RCTBubblingEventBlock)onFastImageLoad { +- (void)setOnFastImageLoad:(RCTDirectEventBlock)onFastImageLoad { _onFastImageLoad = onFastImageLoad; if (self.hasCompleted) { _onFastImageLoad(self.onLoadEvent); @@ -52,7 +52,7 @@ - (void)setOnFastImageError:(RCTDirectEventBlock)onFastImageError { } } -- (void)setOnFastImageLoadStart:(RCTBubblingEventBlock)onFastImageLoadStart { +- (void)setOnFastImageLoadStart:(RCTDirectEventBlock)onFastImageLoadStart { if (_source && !self.hasSentOnLoadStart) { _onFastImageLoadStart = onFastImageLoadStart; onFastImageLoadStart(@{});