React-native-reanimated: [Question] Do animations need to be manually stopped when a components unmounts?

Created on 10 Feb 2020  路  2Comments  路  Source: software-mansion/react-native-reanimated

My team and I have been using RN's Animated API. We've found that if we do not call stopAnimation on componentWillUnmount, the app may crash.

When using Reanimated, is there any "clean up" necessary on unmount? The question seems to have been discussed here, but it doesn't seem like a clear answer was reached. Thank you!

Thank you!

鉂換uestion

Most helpful comment

Hi @hblumberg,

sorry for the late response.

Nodes detach themselves on componentWillUnmount, so it happens automatically.

If you have further questions feel free to reply.

All 2 comments

Hi @hblumberg,

sorry for the late response.

Nodes detach themselves on componentWillUnmount, so it happens automatically.

If you have further questions feel free to reply.

Great 鉂わ笍

Was this page helpful?
0 / 5 - 0 ratings