@Override public void addView(ReactViewGroup parent, View child, int index) { boolean removeClippedSubviews = parent.getRemoveClippedSubviews(); if (removeClippedSubviews) { parent.addViewWithSubviewClippingEnabled(child, index); } else { parent.addView(child, index); } }
/*package*/ void addViewWithSubviewClippingEnabled(View child, int index) { addViewWithSubviewClippingEnabled(child, index, sDefaultLayoutParam); }