Skip to content

Commit

Permalink
Fix ModulusAnimatedNode
Browse files Browse the repository at this point in the history
Summary:
For the Kotlinification of AnimatedNode to work correctly, fix ModulusAnimatedNode

changelog: [internal] internal

Differential Revision: D60188329
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Jul 24, 2024
1 parent 6c54cc5 commit d65c431
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class ModulusAnimatedNode(
override public fun update() {
val animatedNode = nativeAnimatedNodesManager.getNodeById(inputNode)
if (animatedNode is ValueAnimatedNode) {
val animatedNodeValue = animatedNode.value
val animatedNodeValue = animatedNode.mValue
mValue = (animatedNodeValue % modulus + modulus) % modulus
} else {
throw JSApplicationCausedNativeException(
Expand Down

0 comments on commit d65c431

Please sign in to comment.