Update overflowInset flag to use public static field

Summary: There's no need to use private feature flag for overflowInset feature. This makes future refactor on feature flags easier.

Reviewed By: javache

Differential Revision: D35866302

fbshipit-source-id: a3fde212ff40cd6d4c68832bb39b34de5a17a8d4
This commit is contained in:
Xin Chen authored and Facebook GitHub Bot committed 2022-05-03 14:47:47 -07:00
1 parent c8550bb5fa
commit 16f30fc0ec
3 files changed
+5 -14

No files matched your search

@@ -192,7 +192,7 @@ public class TouchTargetHelper {
// If the touch point is outside of the overflowinset for the view, we can safely ignore
// it.
if (ViewUtil.getUIManagerType(view.getId()) == FABRIC
&& ReactFeatureFlags.doesUseOverflowInset()
&& ReactFeatureFlags.useOverflowInset
&& !isTouchPointInViewWithOverflowInset(eventCoords[0], eventCoords[1], view)) {
return null;
}