react-native/Examples/UIExplorer/UIExplorer
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
..
Base.lproj added method to set thumb image 2015-11-24 16:10:04 -08:00
Images.xcassets Update Image docs and examples to the new asset system 2016-01-27 13:47:45 -08:00
NativeExampleViews Refactored subview management 2016-06-07 00:14:39 -07:00
AppDelegate.h 'Update app properties in runtime' UIExplorer demo 2015-11-12 11:43:34 -08:00
AppDelegate.m Fixed UIExplorer 2016-05-24 02:58:23 -07:00
Info.plist App linking for UIExplorer iOS 2016-02-22 16:17:23 -08:00
main.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00