-
Notifications
You must be signed in to change notification settings - Fork 432
Move queueAnimation
to component
#74
Comments
I'd like to implement |
Hm, what about |
@grabbou Animated? If you're talking about AnimatedExperimental, then you should check it out facebook/react-native#796 |
No, I am talking about |
Now I'm already using it and you can pass |
Nah you are using |
That's true. So, you want to animate opening/closing of the side menu. What is your propose for API? something like const queue = [
Animated.decay(position, { // coast to a stop
velocity: {x: gestureState.vx, y: gestureState.vy}, // velocity from gesture release
deceleration: 0.997,
}),
Animated.parallel([ // after decay, in parallel:
Animated.spring(position, {
toValue: {x: 0, y: 0} // return to start
}),
Animated.timing(twirl, { // and twirl
toValue: 360,
}),
]),
];
// ...
<SideMenu animationQueue={queue}/> right? updatePosition() {
// this.sideMenu.setNativeProps({ left: this.left, });
Animated.queue(this.prop.animationQueue).start();
} where |
Should be solved in |
So it's overridable and we can easily ignore
animationKind
and provide own LayoutAnimations. Just an idea, as I am not that happy with the current one and I am investigating changing the LayoutAnimations to something different at all.The text was updated successfully, but these errors were encountered: