mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3dd92513c5
Summary: In the previous diff, we moved the destruction of a ShadowTree object from `UIManager::stopSurface` method. And the next logical step is to align `UIManager::startSurface` method with the symmetrical approach. Now `stopSurface` accepts a unique pointer to a ShadowTree and `stopSurface` returns it back to the caller; this way we can avoid returning a raw pointer from `startSurface`. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D27010533 fbshipit-source-id: b9211fb7e67763cc190d6b8c86cb866d20c6693d