From 31128b108ae77b7c26b700ffbb968ba4b2154bcf Mon Sep 17 00:00:00 2001 From: Ruslan Shestopalyuk Date: Sun, 28 Jul 2024 04:01:44 -0700 Subject: [PATCH] Convert TrackingAnimatedNode to Kotlin (#45728) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45728 # Changelog: [Internal] - As in the title. Reviewed By: tdn120 Differential Revision: D60286293 --- .../java/com/facebook/react/animated/TrackingAnimatedNode.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.kt index cffb1894fc6720..de6dd8885e7148 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/animated/TrackingAnimatedNode.kt @@ -14,10 +14,10 @@ internal class TrackingAnimatedNode( config: ReadableMap, private val nativeAnimatedNodesManager: NativeAnimatedNodesManager ) : AnimatedNode() { + private val animationConfig: JavaOnlyMap = JavaOnlyMap.deepClone(config.getMap("animationConfig")) private val animationId: Int = config.getInt("animationId") private val toValueNode: Int = config.getInt("toValue") private val valueNode: Int = config.getInt("value") - private val animationConfig: JavaOnlyMap = JavaOnlyMap.deepClone(config.getMap("animationConfig")) public override fun update() { val toValue = nativeAnimatedNodesManager.getNodeById(toValueNode)