mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
33d6091cac
Summary: This diff migrates iOS renderer to using SurfaceHandler directly instead of calling Scheduler methods. Major changes: * RCTFabricSurface only stores a SurfaceHandler and platform-specific parts (such as a UIView instance and TouchHandler); all other pieces of state are stored in SurfaceHandler object. * All the state changes initiated from RCTFabricSurface are performed via calling corresponding methods on SurfaceHandler (bypassing RCTSurfacePresenter, RCTScheduler, Scheduler, and UIManager). * Every RCTSurfaceHandler is responsible for observing `UIContentSizeCategoryDidChangeNotification` and communicating the change down to SurfaceHandler. (Besides code simplifications it's more correct because on iOS the DPI actually depends on a particular UIScreen/UIWindow associated with UIView and *not* global for the whole app.) Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D24290778 fbshipit-source-id: 62b600c3f1b2e66a7513481404af941ef8b78bec