react-native/Libraries/Components/View
Janic Duplessis d0d1712851 Reverted commit D3827366
Summary:
This adds support for sticky headers on Android. The implementation if based primarily on the iOS one (https://github.com/facebook/react-native/blob/master/React/Views/RCTScrollView.m#L272) and adds some stuff that was missing to be able to handle z-index, view clipping, view hierarchy optimization and touch handling properly.

Some notable changes:
- Add `ChildDrawingOrderDelegate` interface to allow changing the `ViewGroup` drawing order using `ViewGroup#getChildDrawingOrder`. This is used to change the content view drawing order to make sure headers are drawn over the other cells. Right now I'm only reversing the drawing order as drawing only the header views last added a lot of complexity especially because of view clipping and I don't think it should cause issues.

- Add `collapsableChildren` prop that works like `collapsable` but applies to every child of the view. This is needed to be able to reference sticky headers by their indices otherwise some subviews can get optimized out and break indexes.
Closes https://github.com/facebook/react-native/pull/9456

Differential Revision: D3827366

Pulled By: fred2028

fbshipit-source-id: d346068734c5b987518794ab23e13914ed13b5c4
2016-09-15 12:13:39 -07:00
..
__mocks__ First snapshot test, rendering "native" React component. 2016-06-29 21:58:17 -07:00
ReactNativeStyleAttributes.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ReactNativeViewAttributes.js Refactor Attribute Processing (Step 2) 2015-10-06 10:28:35 -07:00
ShadowPropTypesIOS.js Remove `node_modules/react` from the list of discoverable haste modules 2016-07-05 06:44:33 -07:00
View.js Reverted commit D3827366 2016-09-15 12:13:39 -07:00
ViewStylePropTypes.js Reverted commit D3855801 2016-09-14 11:28:34 -07:00