diff --git a/Libraries/Animation/RCTAnimationExperimentalManager.m b/Libraries/Animation/RCTAnimationExperimentalManager.m index 6bcda39ae30d83..b58889b47c95ae 100644 --- a/Libraries/Animation/RCTAnimationExperimentalManager.m +++ b/Libraries/Animation/RCTAnimationExperimentalManager.m @@ -217,6 +217,11 @@ static void RCTInvalidAnimationProp(RCTSparseArray *callbacks, NSNumber *tag, NS } NSValue *fromValue = [view.layer.presentationLayer valueForKeyPath:keypath]; +#if !CGFLOAT_IS_DOUBLE + if ([fromValue isKindOfClass:[NSNumber class]]) { + fromValue = [NSNumber numberWithFloat:[(NSNumber *)fromValue doubleValue]]; + } +#endif CGFloat fromFields[count]; [fromValue getValue:fromFields];