react-native/Examples/UIExplorer/UIExplorerUnitTests
Alexsander Akers 02db374e50 [React Native] Remove layout-only nodes (Take 2!)
Summary:
Remove layout-only views. Works by checking properties against a list of known properties that only affect layout. The `RCTShadowView` hierarchy still has a 1:1 correlation with the JS nodes.

This works by adjusting the tags and indices in `manageChildren`. For example, if JS told us to insert tag 1 at index 0 and tag 1 is layout-only with children whose tags are 2 and 3, we adjust it so we insert tags 2 and 3 at indices 0 and 1. This keeps changes out of `RCTView` and `RCTScrollView`. In order to simplify this logic, view moves are now processed as view removals followed by additions. A move from index 0 to 1 is recorded as a removal of view at indices 0 and 1 and an insertion of tags 1 and 2 at indices 0 and 1. Of course, the remaining indices have to be offset to take account for this.

The `collapsible` attribute is a bit of a hack to force `RCTScrollView` to always have one child. This was easier than rethinking out the logic there, but we could change this later.
2015-07-07 05:06:50 -08:00
..
OCMock [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08: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 [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00
RCTAllocationTests.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTBridgeTests.m Changed methodQueue to a property 2015-06-19 04:20:39 -08:00
RCTClippingTests.m [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00
RCTContextExecutorTests.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTConvert_NSURLTests.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTConvert_UIFontTests.m [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00
RCTEventDispatcherTests.m [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00
RCTShadowViewTests.m Add unit tests for RCTShadowView. 2015-06-24 00:19:46 -08:00
RCTSparseArrayTests.m [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00
RCTUIManagerTests.m [React Native] Remove layout-only nodes (Take 2!) 2015-07-07 05:06:50 -08:00
libOCMock.a [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00