mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e810291790
Summary: Change lifecycle of stopSurface in a subtle way: mark the surface as stopped in Java first, then in Cxx (currently it happens in Cxx, then Java). This will cause us / allow us to ignore the final mounting instructions for the Surface, which are all irrelevant since they just have to do with View removal. We can rely on GC and `unmountReactApplication` to do all of this for us, and save some CPU cycles on stopSurface. Changelog: [Internal] Reviewed By: shergin Differential Revision: D26469741 fbshipit-source-id: a7f81d44c3cb2138f0ab31feb38852910410c638