mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-15 23:03:58 +08:00
Introducing "collapsable" prop as part of ViewProps
Summary: This diff introduces the collapsable props in the viewProps. This prop is used in product code to prevent specific Views to be removed from the view hierarchy Reviewed By: shergin Differential Revision: D10254679 fbshipit-source-id: 637665b8998a86e29e839eb6d405a0fac354c8d3
This commit is contained in:
committed by
Facebook Github Bot
parent
04fbdd347b
commit
95afdd8bb3
@@ -177,7 +177,7 @@ public class TouchTargetHelper {
|
||||
if (child instanceof ReactHitSlopView && ((ReactHitSlopView) child).getHitSlopRect() != null) {
|
||||
Rect hitSlopRect = ((ReactHitSlopView) child).getHitSlopRect();
|
||||
if ((localX >= -hitSlopRect.left && localX < (child.getRight() - child.getLeft()) + hitSlopRect.right)
|
||||
&& (localY >= -hitSlopRect.top && localY < (child.getBottom() - child.getTop()) + hitSlopRect.bottom)) {
|
||||
&& (localY >= -hitSlopRect.top && localY < (child.getBottom() - child.getTop()) + hitSlopRect.bottom)) {
|
||||
outLocalPoint.set(localX, localY);
|
||||
return true;
|
||||
}
|
||||
@@ -185,7 +185,7 @@ public class TouchTargetHelper {
|
||||
return false;
|
||||
} else {
|
||||
if ((localX >= 0 && localX < (child.getRight() - child.getLeft()))
|
||||
&& (localY >= 0 && localY < (child.getBottom() - child.getTop()))) {
|
||||
&& (localY >= 0 && localY < (child.getBottom() - child.getTop()))) {
|
||||
outLocalPoint.set(localX, localY);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user