Joshua Gross
03174f1cad
Call stopSurface when ReactRootView is unregistered
...
Summary:
In the past, in Fabric (Android), we never called stopSurface. Ever! This is bad for memory and can cause other issues, so... let's not do that.
Instead, when the ReactRootView is being torn down, we check the View ID to see if it's a Fabric RootView, and if it is, we call Fabric's stopSurface method.
Fabric stopSurface only has impact on (1) Fabric mount instructions being executed after that point and (2) tells JS to stop running the surface, on the JS thread, asynchronously.
Anecdotally it looks like all the MountItems involved in deleting and removing views from the hierarchy are executed before stopSurface is called.
Changelog: [Internal]
Reviewed By: mdvacca
Differential Revision: D21965837
fbshipit-source-id: 5169c5a1e339fd9e016ae1234d8389b2bd30be70
2020-06-09 23:23:10 -07:00
..
2019-12-17 13:23:59 -08:00
2019-10-16 10:06:33 -07:00
2020-02-13 05:50:42 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:34 -07:00
2018-10-31 01:37:26 -07:00
2020-05-15 21:55:52 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-05-08 16:13:42 -07:00
2020-06-02 20:11:53 -07:00
2020-03-02 15:12:09 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:34 -07:00
2020-04-01 17:52:39 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-02-05 15:26:11 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-12-03 11:33:00 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-04-28 12:18:17 -07:00
2019-12-17 18:38:57 -08:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2018-10-31 01:37:26 -07:00
2020-03-19 23:02:04 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-03-19 23:02:04 -07:00
2020-04-28 17:56:44 -07:00
2019-11-05 15:36:29 -08:00
2019-10-16 10:06:33 -07:00
2020-06-09 23:23:10 -07:00
2020-05-26 11:39:28 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:33 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00