React-native-animatable: Animation on componentWillUnmount()

Created on 1 Dec 2016  路  4Comments  路  Source: oblador/react-native-animatable

I've seen the other 2 closed issues on this but none of them really answered this question:

Is it possible to slideOut or fadeOut components before they unmount? You've mentioned in https://github.com/oblador/react-native-animatable/issues/8 that with Promises it's possible now, i don't really understand how, though.

Any pointers?

Most helpful comment

@chapati23
How do you solve the problem?

All 4 comments

No it is not possible, only LayoutAnimation can do that :-)

Thanks, I resolved to hide the component in question instead of unmounting

@chapati23
How do you solve the problem?

@Aaaaaashu You manage state (eg. visibility), so you set it to false once exit animation ends.

Proof of concept is here: https://github.com/hydropuzzle/react-native-animatable-unmountable

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kamek-pf picture kamek-pf  路  8Comments

JakeHadley picture JakeHadley  路  3Comments

ssomnoremac picture ssomnoremac  路  5Comments

ggomaeng picture ggomaeng  路  5Comments

Aspirationtocode picture Aspirationtocode  路  7Comments