Open lightninglu10 opened 5 years ago
Hey guys, when we use .animate('CUSTOM_ANIMATION'), is there anyway to pass variables?
.animate('CUSTOM_ANIMATION')
For example, if we have:
const CUSTOM_ANIMATION = { from: { opacity: .05, transform: [{translateY: 10}] }, to: { opacity: 1, transform: [{translateY: 0}] } }
can we have the translateY be variable? Or would we need to create different animations for each of those?
https://github.com/oblador/react-native-animatable/issues/123
Hey guys, when we use
.animate('CUSTOM_ANIMATION')
, is there anyway to pass variables?For example, if we have:
can we have the translateY be variable? Or would we need to create different animations for each of those?