forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to make taps on views outside parent bounds work on Android
See facebook#29039
- Loading branch information
Showing
6 changed files
with
225 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactOverflowView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.react.uimanager; | ||
|
||
import android.graphics.Rect; | ||
import android.view.View; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
/** | ||
* Interface that should be implemented by {@link View} subclasses that support {@code | ||
* overflow} style. This allows the overflow information to be used by {@link TouchTargetHelper} | ||
* to determine if a View is touchable. | ||
*/ | ||
public interface ReactOverflowView { | ||
/** | ||
* Gets the overflow state of a view. If set, this should be one of {@link ViewProps#HIDDEN}, | ||
* {@link ViewProps#VISIBLE} or {@link ViewProps#SCROLL}. | ||
*/ | ||
@Nullable String getOverflow(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.