-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Enhancement] Improve loading indicator animation loop and cleanup #622
[Enhancement] Improve loading indicator animation loop and cleanup #622
Conversation
… function to stop the animation
This PR will be ready for review when #621 is approved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
}).start(() => animate()) // Loop the animation | ||
} | ||
animate() | ||
useNativeDriver: isAndroid() || isIOS(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this not always just be true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, these components also work in a web environment (e.g., the Storybook).
Description of Change
Replaced repetitive animation firing in the LoadingIndicator with a loop and added a cleanup function.
Testing Packages
Screenshots/Video
Testing
Tested library on Android, iOS and Web. Also incorporated package into VA Mobile app and performed manual tests as well as detox/e2e tests.
PR Checklist
Code reviewer validation:
changelog
label applied if it's to be included in the changelogPublish
If changes warrant a new version per the versioning guidelines and the PR is approved and ready to merge:
main
into branchmain