Files
react-native/React/CoreModules
Peter Argany b4d5ffb804 Guard against nil bridge during teardown
Summary:
A UBN surfaced in v252 because [this assert](https://our.intern.facebook.com/intern/diffusion/FBS/browse/master/xplat/js/react-native-github/React/Modules/RCTEventEmitter.m?commit=e5d1e6375a640d0387bb7016d3becd262c22c327&lines=40) started firing, originating from `RCTAppState`.

This appears to be a race condition during RN teardown. RN receives a memory warning and attempts to forward to JS, but the bridge is already destroyed.

IMO, if the bridge is already destroyed, then there shouldn't be a need to send a memory warning to JS? This is just a hunch though, if anyone feels otherwise, please let me know :)

See the UBN task for further details.

Changelog: [iOS][Internal] Guard against nil bridge during teardown

Reviewed By: shergin

Differential Revision: D19293063

fbshipit-source-id: 566f21af30d3d9bcd25a673ce664f8caddc701ca
2020-01-06 17:03:06 -08:00
..
2019-12-10 02:31:37 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-11-01 19:34:46 -07:00
2019-10-16 10:06:34 -07:00
2019-12-10 02:31:37 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-11-04 16:07:23 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00