Nick Lockwood
46c02b6ae5
Refactored subview management
...
Summary:
This diff refactors the view update process into two stages:
1. The `reactSubviews` array is set, whose order matches the order of the JS components and shadowView components, as specified by the UIManager.
2. The `didUpdateReactSubviews` method is called, which actually inserts the reactSubviews into the view hierarchy.
This simplifies a lot of the hacks we had for special-case treatment of subviews: In many cases we don't want to actually insert `reactSubviews` into the parentView, and we had a bunch of component-specific solutions for that (typically overriding all of the reactSubviews methods to store views in an array). Now, we can simply override the `didUpdateReactSubviews` method for those views to do nothing, or do something different.
Reviewed By: wwjholmes
Differential Revision: D3396594
fbshipit-source-id: 92fc56fd31db0cfc66aac3d1634a4d4ae3903085
2016-06-07 00:14:39 -07:00
..
2015-04-26 02:17:13 -08:00
2015-08-17 08:46:00 -07:00
2015-06-25 09:17:01 -08:00
2015-09-04 07:00:21 -08:00
2015-12-23 10:07:28 -08:00
2016-01-07 12:03:17 -08:00
2015-12-01 09:00:28 -08:00
2016-06-07 00:14:39 -07:00
2016-02-26 08:18:34 -08:00
2016-06-06 07:58:36 -07:00
2015-06-25 09:15:21 -08:00
2015-06-25 09:15:21 -08:00
2015-12-17 06:46:33 -08:00
2016-01-04 06:38:30 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2015-06-05 09:58:25 -08:00
2016-04-26 04:21:39 -07:00
2016-01-29 06:26:30 -08:00
2016-06-07 00:14:39 -07:00
2016-01-04 06:38:30 -08:00
2015-11-26 08:54:16 -08:00
2015-03-26 02:42:24 -08:00
2016-04-22 10:59:29 -07:00
2015-11-26 08:54:16 -08:00
2015-11-26 08:54:16 -08:00
2016-04-28 16:00:32 -07:00
2016-06-07 00:14:39 -07:00
2015-07-28 07:21:50 -08:00
2016-02-25 09:52:30 -08:00
2015-08-14 04:47:12 -08:00
2016-04-28 16:00:32 -07:00
2016-05-06 03:18:20 -07:00
2016-06-07 00:14:39 -07:00
2015-03-26 02:42:24 -08:00
2016-05-06 03:18:20 -07:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 07:48:26 -08:00
2015-12-08 07:48:26 -08:00
2015-03-26 02:42:24 -08:00
2016-04-26 04:21:39 -07:00
2015-03-26 02:42:24 -08:00
2015-06-03 09:49:35 -08:00
2016-04-26 04:21:39 -07:00
2016-01-04 08:00:29 -08:00
2016-05-13 14:43:26 -07:00
2016-01-04 08:00:29 -08:00
2016-04-16 15:15:25 -07:00
2016-03-21 03:21:27 -07:00
2016-05-31 04:13:32 -07:00
2016-05-12 12:17:20 -07:00
2016-05-24 03:28:25 -07:00
2016-06-07 00:14:39 -07:00
2015-11-25 04:12:34 -08:00
2016-05-24 03:28:25 -07:00
2015-11-03 14:49:30 -08:00
2015-11-03 14:49:30 -08:00
2015-04-29 08:08:45 -08:00
2016-04-26 04:21:39 -07:00
2016-06-07 00:14:39 -07:00
2016-06-07 00:14:39 -07:00
2015-12-21 10:30:39 -08:00
2015-12-21 10:30:39 -08:00
2015-03-26 02:42:24 -08:00
2015-12-21 10:30:39 -08:00
2015-09-02 06:11:24 -08:00
2015-03-26 02:42:24 -08:00
2015-03-26 02:42:24 -08:00
2015-09-02 06:11:24 -08:00
2016-05-03 05:40:29 -07:00
2016-06-07 00:14:39 -07:00
2016-05-24 01:58:23 -07:00
2016-05-24 01:58:23 -07:00
2015-03-26 02:42:24 -08:00
2016-05-24 01:58:23 -07:00
2015-03-26 02:42:24 -08:00
2016-05-20 17:28:50 -07:00
2015-07-07 06:15:20 -08:00
2016-02-16 16:51:39 -08:00
2016-06-07 00:14:39 -07:00
2015-03-26 02:42:24 -08:00
2016-06-07 00:14:39 -07:00
2016-06-07 00:14:39 -07:00
2016-04-22 08:15:25 -07:00
2016-04-22 08:15:25 -07:00
2015-03-26 02:42:24 -08:00
2016-04-22 08:15:25 -07:00
2015-09-02 06:11:24 -08:00
2015-09-04 07:00:21 -08:00
2015-08-13 07:56:41 -08:00
2016-06-07 00:14:39 -07:00
2016-06-07 00:14:39 -07:00