mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
6e179fb7cd
Summary: `mountSafeCallback` simply wraps a callback in an `isMounted()` check to prevent crashes when old callbacks are called on unmounted components. @public Test Plan: Added logging and made sure callbacks were getting called through `mountSafeCallback` and that things worked (e.g. photo viewer rotation etc).