Skip to content

fix: Animated.loop and Animated.sequence crash if resetBeforeIteration is false, original author asyler (from PR 44031 on RN repo) #2783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

psnet
Copy link

@psnet psnet commented Jun 28, 2025

Summary

This PR fixes Animated.loop and Animated.sequence combination usage crash if resetBeforeIteration param for loop is false:

TypeError: can't access property "start", animations[current] is undefined

original author of fix asyler (from PR 44031 of RN repo)

tests are included with fix

Related issues

facebook/react-native#43120
facebook/react-native#37611

…n is false, original author asyler (from PR 44031 on RN repo)
@psnet psnet changed the title fix: Animated.loop and Animated.sequence crash if resetBeforeIteration is false, original author asyler (from PR 44031 on RN repo) fix: Animated.loop and Animated.sequence crash if resetBeforeIteration is false, original author asyler (from PR 44031 on RN repo) Jun 28, 2025
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant