From b03c02b4f2a5c8391855f5e189c51ffaf0da3866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Chmiela?= Date: Thu, 28 Apr 2016 14:45:14 +0200 Subject: [PATCH] Fix Obj-C problem --- RCTVideo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RCTVideo.m b/RCTVideo.m index b1144025..f129f4ad 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -322,11 +322,11 @@ static NSString *const playbackRate = @"rate"; } else if (object == _player) { if([keyPath isEqualToString:playbackRate] && [change objectForKey:NSKeyValueChangeNewKey]) { [_eventDispatcher sendInputEventWithName:@"onPlaybackRateChange" - body:@{@"playbackRate": _player.rate, + body:@{@"playbackRate": [NSNumber numberWithFloat:_player.rate], @"target": self.reactTag}]; if(_playbackStalled && _player.rate > 0) { [_eventDispatcher sendInputEventWithName:@"onPlaybackResume" - body:@{@"playbackRate": _player.rate, + body:@{@"playbackRate": [NSNumber numberWithFloat:_player.rate], @"target": self.reactTag}]; } }