mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Yes, this is a pretty big diff; because of the high interconnectedness of the things, I failed to split it apart. This change does: Introduces a new class RCTSurfacePresenterBridgeAdapter which decouples all Bridge-related functionality from RCTSurfacePresenter. The new class allows "replacing" one instance of the bridge with another for a single RCTSurfacePresenter. This change allows implementing unloading a bridge (e.g. during memory pressure warning) and suspending all RN surfaces with the future possibility of reloading a bridge and resuming surfaces. Changelog: [Internal] Reviewed By: PeteTheHeat Differential Revision: D17960239 fbshipit-source-id: 7ae556ed91030f4c5ab187689ce6bd161fabde93