mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 17:27:54 +08:00
Stop propagating requestLayout up the view hierarchy.
Differential Revision: D2560183 fb-gh-sync-id: e62acc3eb70a78ae4526bfe696e51349be957ae3
This commit is contained in:
committed by
facebook-github-bot-3
parent
1b55e4657c
commit
4849aabecc
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user