From 1a4c61a429e745f38195afafa2bffa053064d371 Mon Sep 17 00:00:00 2001 From: Daehoon Kim Date: Thu, 29 Mar 2018 10:29:03 +0900 Subject: [PATCH] Return float current time in the currentTime() --- RCTYouTubeManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RCTYouTubeManager.m b/RCTYouTubeManager.m index cd4a5dfe..6c6476dc 100644 --- a/RCTYouTubeManager.m +++ b/RCTYouTubeManager.m @@ -105,7 +105,7 @@ - (dispatch_queue_t)methodQueue { [self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary *viewRegistry) { RCTYouTube *youtube = (RCTYouTube*)viewRegistry[reactTag]; if ([youtube isKindOfClass:[RCTYouTube class]]) { - NSNumber *index = [NSNumber numberWithInt:[youtube currentTime]]; + NSNumber *index = [NSNumber numberWithFloat:[youtube currentTime]]; if (index) { resolve(index); } else {