Merge pull request #1720 from nmarisi/fix-NSInternalInconsistencyException

Removing the call to observeValueForKeyPath:ofObject:change:context: …
This commit is contained in:
Daniel Mariño Ruiz 2019-09-08 08:29:27 +02:00 committed by GitHub
commit f66ca32d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,8 @@
## Changelog
### Version 5.0.2
* Fix crash when RCTVideo's superclass doesn't observe the keyPath 'frame' (iOS) [#1720](https://github.com/react-native-community/react-native-video/pull/1720)
### Version 5.0.1
* Fix AndroidX Support bad merge

View File

@ -712,8 +712,6 @@ static int const RCTVideoUnset = -1;
return;
}
} else if ([super respondsToSelector:@selector(observeValueForKeyPath:ofObject:change:context:)]) {
[super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
}
}