Skip to content

Commit

Permalink
Convert TrackingAnimatedNode to Kotlin (facebook#45728)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#45728

# Changelog:
[Internal] -

As in the title.

Reviewed By: tdn120

Differential Revision: D60286293
  • Loading branch information
rshest authored and facebook-github-bot committed Jul 28, 2024
1 parent ca0be8c commit 31128b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 31128b1

Please sign in to comment.