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

fbshipit-source-id: 9afcbc3bab6e393c19306a9452ff1e0c5ec1f6dc
  • Loading branch information
rshest authored and facebook-github-bot committed Jul 29, 2024
1 parent e2de11c commit fc8a7b9
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 fc8a7b9

Please sign in to comment.