From 2ea9a7b51f99284e006459a805037faf5af2c5e8 Mon Sep 17 00:00:00 2001 From: Zeya Peng Date: Wed, 18 Dec 2024 09:10:13 -0800 Subject: [PATCH] Allow `debugID` key in InterpolationNode config & Support debugID in NVE (#48323) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48323 Allow `debugID` key in InterpolationNode config Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D67185006 fbshipit-source-id: ec0081617103bd4b7bb78210702872a42db26361 --- .../src/private/animated/NativeAnimatedValidation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/src/private/animated/NativeAnimatedValidation.js b/packages/react-native/src/private/animated/NativeAnimatedValidation.js index 5b21dff8606f5c..7bff92a42ed46f 100644 --- a/packages/react-native/src/private/animated/NativeAnimatedValidation.js +++ b/packages/react-native/src/private/animated/NativeAnimatedValidation.js @@ -20,7 +20,7 @@ export function validateInterpolation( config: InterpolationConfigType, ): void { for (const key in config) { - if (!isSupportedInterpolationParam(key)) { + if (key !== 'debugID' && !isSupportedInterpolationParam(key)) { console.error( `Interpolation property '${key}' is not supported by native animated module`, );