question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repeat doesn't behave like withTiming

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wcandilloncommented, Sep 28, 2020

Closing again, looks this has been fixed.

1reaction
wcandilloncommented, Aug 24, 2020

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())

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found