timing(..).start() seems broken
See original GitHub issueHey 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)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top 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 >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
@ericvicenti Try to use
Easing
fromreact-native-reanimated
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