react-native/Examples
Martin Kralik 26e373c903 fix view clipping to operate on ui hierachy
Summary:
There was a bug in the view clipping logic.
Clipping works on uiview hierarchy, but I've been using `reactSuperview` to get clipping rect for my parent.
This is incorrect in a case where these two hierarchies don't match and there are some views between a view and its `reactSuperview`.

So we should really use normal `superview`. A minor complication is that `superview` is `nil` if we are clipped.
We could remember what our last `superview` was, but that's extra data we have to manage. Instead I use one clever trick to avoid doing so.
(Let me know if it makes sense based on my inline documentation.)

Reviewed By: mmmulani

Differential Revision: D4182647

fbshipit-source-id: 779cbcec0bd08eb270c3727c9c5cb9c080c4a2a4
2016-11-15 17:13:48 -08:00
..
2048 Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
Movies Consolidate Running on Device (Android|iOS) Guides into one 2016-11-06 21:13:32 -08:00
TicTacToe Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
UIExplorer fix view clipping to operate on ui hierachy 2016-11-15 17:13:48 -08:00
.eslintrc Add global flow types to eslint globals 2016-01-27 15:55:34 -08:00