Fix overflow issue in root view

Summary:
Set clipChildren to false by default in ReactRootView.java so that Overflow: visible/hidden will work for the root view.

Moved sDefaultOverflowHidden from ReactViewGroup.java to ViewProps.java so that it can be used in both ReactViewGroup.java and ReactRootView.java.

Reviewed By: mdvacca

Differential Revision: D8727140

fbshipit-source-id: b593bed63e479cdbd22e4a025b936e6aeb28fc8c
This commit is contained in:
Jiaqi Wu
2018-07-19 17:46:53 -07:00
committed by Facebook Github Bot
parent d5465a9a0a
commit 9c71952f20
3 changed files with 16 additions and 6 deletions
@@ -17,6 +17,11 @@ import java.util.HashSet;
*/
public class ViewProps {
/**
* Kill switch to make overflow hidden by default. This flag will eventually be removed.
*/
public static boolean sDefaultOverflowHidden;
public static final String VIEW_CLASS_NAME = "RCTView";
// Layout only (only affect positions of children, causes no drawing)