Skip to content

Instantly share code, notes, and snippets.

@35d
Created October 1, 2018 04:10
Show Gist options
  • Save 35d/eb9d71ed54c88a802dcd912447e68cd1 to your computer and use it in GitHub Desktop.
Save 35d/eb9d71ed54c88a802dcd912447e68cd1 to your computer and use it in GitHub Desktop.
// アニメーション
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