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.

timing(..).start() seems broken

See original GitHub issue

Hey team, I have a pretty simple example of Animated.timing.start that doesn’t work. In my application, it fails silently, but these repros also demonstrate:

Repro Snippet

export default class App extends React.Component {
  state = { progress: new Animated.Value(0.15) };
  componentDidMount() {
    // this should cause the message to fade in, but it does not
    Animated.timing(this.state.progress, {
      toValue: 1,
      duration: 500,
      easing: Easing.out(Easing.cubic)
    }).start(() => {
      // this should get called after ~500ms, but it does not
      console.log("Transition complete");
    });
  }
  render() {
    return (
      <Animated.View
        style={[{ opacity: this.state.progress }, styles.container]}
      >
        <Text style={styles.paragraph}>Hello Reanimated</Text>
      </Animated.View>
    );
  }
}

Snack (crashes expo)

https://snack.expo.io/rkIOPnLzV

Native Repo (crash tested on iOS)

https://github.com/ericvicenti/reanimated-bug

screen shot 2019-01-11 at 4 35 13 pm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kantormcommented, Jan 14, 2019

@ericvicenti Try to use Easing from react-native-reanimated

0reactions
ericvicenticommented, Jan 16, 2019

I’m going to close this for now because I can’t find a simple way to reproduce the issue… I’ll re-file if I pin it down

Read more comments on GitHub >

github_iconTop Results From Across the Web

timing(..).start() seems broken #167 - GitHub
Hey team, I have a pretty simple example of Animated.timing.start that doesn't work. In my application, it fails silently, but these repros ...
Read more >
How To Diagnose a Broken Timing Belt - YouTube
In this video I share my methods of diagnosing a broken timing belt. Mechanical issues are so often overlooked when diagnosing a no...
Read more >
What Happens When A Timing Belt Breaks While Driving?
2. Engine fails to start. When you turn the key in the ignition and the timing belt has broken, you will hear the...
Read more >
python - Break the function after certain time - Stack Overflow
import time for x in range(0,3): someFunction() def someFunction(): start = time.time() while (time.time() - start < 5): # do your normal function...
Read more >
Broken timing belt: symptoms, noises and what to do
If you can locate the timing belt and it looks damaged, frayed or completely broken, ... Second symptom of a broken timing belt:...
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