From b664dfdae380279a9cd7b6f8e354b55a67db3ccd Mon Sep 17 00:00:00 2001 From: Takeru Chuganji Date: Sun, 24 Feb 2019 23:59:19 -0800 Subject: [PATCH] iOS: Resolve a build warning for 32bit devices (#19416) Summary: This PR resolves a warning `Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float')` when building not only this library **but also apps** for 32bit devices since it's declared in public header file. Pull Request resolved: https://github.com/facebook/react-native/pull/19416 Differential Revision: D14206633 Pulled By: cpojer fbshipit-source-id: a65a4774235fa7fb24fac2f9bf7e51ba2a027377 --- Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h b/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h index 915606c2d..1a13699da 100644 --- a/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h +++ b/Libraries/NativeAnimation/Drivers/RCTAnimationDriver.h @@ -10,7 +10,7 @@ #import -static CGFloat RCTSingleFrameInterval = 1.0 / 60.0; +static CGFloat RCTSingleFrameInterval = (CGFloat)(1.0 / 60.0); @class RCTValueAnimatedNode;