Skip to content

Commit f66ca32

Browse files
authored
Merge pull request #1720 from nmarisi/fix-NSInternalInconsistencyException
Removing the call to observeValueForKeyPath:ofObject:change:context: …
2 parents 0a2f7bd + 9272678 commit f66ca32

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22

3+
### Version 5.0.2
4+
* 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)
5+
36
### Version 5.0.1
47
* Fix AndroidX Support bad merge
58

ios/Video/RCTVideo.m

-2
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,6 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
712712

713713
return;
714714
}
715-
} else if ([super respondsToSelector:@selector(observeValueForKeyPath:ofObject:change:context:)]) {
716-
[super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
717715
}
718716
}
719717

0 commit comments

Comments
 (0)