Repeat doesn't behave like withTiming
See original GitHub issueThe following example works:
const progress = useDerivedValue(() => withTiming(1));
The following crashes:
const progress = useDerivedValue(() => repeat(withTiming(1), -1, true));
I’m trying to achieve maximum composability between between animations and would like to write the following:
const paused = useSharedValue(false);
const progress = useDerivedValue(() => withPause(repeat(withTiming(1), -1, true)), paused);
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
withRepeat | React Native Reanimated - Software Mansion
Repeats the provided animation several times. ... only work when the provided animation is a plain, non-modified animation like withTiming or withSpring ....
Read more >Animations in React Native: Performance and Reason-about ...
Reanimated gives us some tools to actually animate shared values with various easing functions. With functions like withTiming , withSpring , ...
Read more >Repeat Interval Cannot Be Zero - Stack Overflow
It seems you want the trigger to fire only once. ... This way trigger acts with a delay, but the job does not...
Read more >Writes - Amazon Timestream - AWS Documentation
TIMESTAMP attributes, in a multi-measure record, can have timestamps in the future or the past and behave like the time field except that...
Read more >Alchemy sequencer in Logic Pro - Apple Support (EG)
Note: Settings from earlier application versions may not behave as expected ... Note: Value Snap doesn't move existing step values into alignment with ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing again, looks this has been fixed.
I also have a concern about the boilerplate required to build custom animations. While I was able to build a custom animation outside reanimated 2, animations defined in animation.js seem to use boilerplate that might be useful to other animations (namely defineAnimation())