reanimated-easing
Use easing functions followed by easings.net
in React Native Reanimated
.
Installation
$ yarn add reanimated-easing
Usage
const Clock Value set cond startClock clockRunning timing block = Animated const clock = const value = 0const dest = 1const state = finished: 0 position: 0 time: 0 frameTime: 0const finished = 0const config = duration: 1000 toValue: 0 // Use easing function from `reanimated-easing` easing: EasingeaseOutElastic
Create variable easing timing
const Clock Value set cond startClock clockRunning block = Animated const clock = const value = 0const dest = 1const state = finished: 0 position: 0 time: 0 frameTime: 0const finished = 0const config = duration: 1000 toValue: 0 // Define easing value easing: