We have predefined presets like this.
LayoutAnimation.configureNext(LayoutAnimation.Presets.linear);
But I did not found a way to use my custom presets for example with linear type and 0.1s speed.
You can use it like this:
LayoutAnimation.configureNext(CustomAnimation)
with
var CustomAnimation = {
duration: 400,
create: {
type: LayoutAnimation.Types.spring,
property: LayoutAnimation.Properties.scaleXY,
springDamping: 0.7
},
update: {
type: LayoutAnimation.Types.spring,
springDamping: 0.7
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With