Stop propagating requestLayout up the view hierarchy.

Differential Revision: D2560183

fb-gh-sync-id: e62acc3eb70a78ae4526bfe696e51349be957ae3
This commit is contained in:
Krzysztof Magiera
2015-10-20 08:37:44 -07:00
committed by facebook-github-bot-3
parent 1b55e4657c
commit 4849aabecc

View File

@@ -110,6 +110,12 @@ public class ReactViewGroup extends ViewGroup implements
// No-op since UIManagerModule handles actually laying out children.
}
@Override
public void requestLayout() {
// No-op, terminate `requestLayout` here, UIManagerModule handles laying out children and
// `layout` is called on all RN-managed views by `NativeViewHierarchyManager`
}
@Override
public void setBackgroundColor(int color) {
if (color == Color.TRANSPARENT) {