oblador / react-native-animatable

Standard set of easy to use animations and declarative transitions for React Native
MIT License
9.79k stars 704 forks source link

onAnimationBegin and onAnimationEnd doesn't work. They are not fired #396

Open renanbronchart opened 2 years ago

renanbronchart commented 2 years ago

onAnimationBegin and onAnimationEnd doesn't work.

My animation is fired, and it works perfectly, but callback are not fired.

      <Animatable.View
        transition={["maxHeight", "paddingVertical"]}
        duration={150}
        delay={500}
        easing="ease-out-cubic"
        onAnimationEnd={() => { console.log('finish animation')}}
        onAnimationBegin={() => { console.log('begin animation')}}
        style={[
          styles.postWrapper,
          {
            maxHeight: isRemoved ? 0 : 1000,
            paddingVertical: isRemoved ? 0 : 16
          }
        ]}
      >
coolersham commented 6 months ago

@renanbronchart Any updates on this one?