react-native-animatable
react-native-animatable copied to clipboard
Variable Animation Amount
Hey guys, when we use .animate('CUSTOM_ANIMATION')
, is there anyway to pass variables?
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