Skip to content

Commit

Permalink
chore: replace all RCTBubblingEventBlock by RCTDirectEventBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Masini committed Mar 20, 2019
1 parent 264e117 commit e75eb9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/FastImage/FFFastImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -52,7 +52,7 @@ - (void)setOnFastImageError:(RCTDirectEventBlock)onFastImageError {
}
}

- (void)setOnFastImageLoadStart:(RCTBubblingEventBlock)onFastImageLoadStart {
- (void)setOnFastImageLoadStart:(RCTDirectEventBlock)onFastImageLoadStart {
if (_source && !self.hasSentOnLoadStart) {
_onFastImageLoadStart = onFastImageLoadStart;
onFastImageLoadStart(@{});
Expand Down

0 comments on commit e75eb9d

Please sign in to comment.