Don't require more details than we set to receive

This commit is contained in:
Stanisław Chmiela 2016-04-28 14:59:49 +02:00
parent d1eae07cfa
commit e35eaf645f

View File

@ -320,7 +320,7 @@ static NSString *const playbackRate = @"rate";
}
}
} else if (object == _player) {
if([keyPath isEqualToString:playbackRate] && [change objectForKey:NSKeyValueChangeNewKey]) {
if([keyPath isEqualToString:playbackRate]) {
[_eventDispatcher sendInputEventWithName:@"onPlaybackRateChange"
body:@{@"playbackRate": [NSNumber numberWithFloat:_player.rate],
@"target": self.reactTag}];