Created
October 1, 2018 04:10
-
-
Save 35d/eb9d71ed54c88a802dcd912447e68cd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// アニメーション | |
const CustomLayoutSpring = { | |
duration: 400, | |
// ボール追加時のアニメーション | |
create: { | |
type: LayoutAnimation.Types.spring, | |
property: LayoutAnimation.Properties.scaleXY, | |
springDamping: 0.6, | |
}, | |
// ボール移動時のアニメーション | |
update: { | |
type: LayoutAnimation.Types.spring, | |
springDamping: 0.7, | |
}, | |
delete: { | |
type: LayoutAnimation.Types.spring, | |
property: LayoutAnimation.Properties.scaleXY, | |
springDamping: 0.2, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment