react-native/Examples/UIExplorer/UIExplorerUnitTests
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
..
OCMock CHORE - Remove Trailing Spaces 2016-04-06 09:21:53 -07:00
Info.plist Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
LayoutSubviewsOrderingTest.m Bugfix - Typos 2015-12-15 09:09:32 -08:00
RCTAllocationTests.m Re-enable testUnderlyingBridgeIsDeallocated 2016-01-06 09:03:33 -08:00
RCTBridgeTests.m CHORE - Remove Trailing Spaces 2016-04-06 09:21:53 -07:00
RCTBundleURLProviderTests.m Added RCTBundleURLProvider 2016-05-31 04:59:56 -07:00
RCTComponentPropsTests.m Added unit tests for component prop setting and resetting 2016-03-18 08:17:20 -07:00
RCTConvert_NSURLTests.m Use mainBundle in RCTConvert to resolve asset paths 2015-11-05 09:30:36 -08:00
RCTConvert_UIFontTests.m Implemented lazy parsing of method signatures to improve TTI 2015-08-11 08:49:13 -08:00
RCTEventDispatcherTests.m Update RCTNetworking, RCTNetInfo and RCTLocationManager to use new events system 2016-05-25 04:28:36 -07:00
RCTGzipTests.m Re-enable testUnderlyingBridgeIsDeallocated 2016-01-06 09:03:33 -08:00
RCTImageLoaderHelpers.h Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RCTImageLoaderHelpers.m Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RCTImageLoaderTests.m iOS: Support HTTP headers for source prop on <Image> components 2016-06-01 10:43:28 -07:00
RCTImageUtilTests.m Removed placeholder image logic 2016-04-25 03:31:19 -07:00
RCTJSCExecutorTests.m Move RCTJSCExecutorTests to ReactKitBenchmarks 2016-04-19 11:37:28 -07:00
RCTJSONTests.m Handle bad JSON data without crashing 2016-01-26 06:13:29 -08:00
RCTMethodArgumentTests.m Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTModuleInitNotificationRaceTests.m Updated AppState module to use new emitter system 2016-05-23 09:13:37 -07:00
RCTModuleInitTests.m Replaced isMainThread checks with a proper test for main queue 2016-06-06 07:58:36 -07:00
RCTModuleMethodTests.m Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTShadowViewTests.m Extracted rootview-specific shadowview logic into new class 2016-03-21 03:21:27 -07:00
RCTUIManagerTests.m Refactored subview management 2016-06-07 00:14:39 -07:00
RCTURLUtilsTests.m Remove `hot` query string attribut when HL is disabled 2016-01-06 11:55:33 -08:00
libOCMock.a [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00