From 6de06f1f540fc5449825fd1b750e721dfd408402 Mon Sep 17 00:00:00 2001 From: Zaid Daghestani Date: Mon, 1 Jul 2019 14:56:41 -0700 Subject: [PATCH] Remove calls to [super observe] to fix crash --- ios/Video/RCTVideo.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index 71bf82d8..33d6be42 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -595,8 +595,7 @@ static int const RCTVideoUnset = -1; } return; - } else - return [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; + } } if([keyPath isEqualToString:readyForDisplayKeyPath] && [change objectForKey:NSKeyValueChangeNewKey] && self.onReadyForDisplay) { self.onReadyForDisplay(@{@"target": self.reactTag}); @@ -713,8 +712,6 @@ static int const RCTVideoUnset = -1; @"target": self.reactTag}); } } - } else { - [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; } }