Skip to content

Commit df80ed4

Browse files
ryancatfacebook-github-bot
authored andcommitted
Remove useOverflowInset flag as we rolled out 100% to public for over three months
Summary: Remove overflow inset optimization flags as they've been rolled out 100% to public. Changelog: [Android][Internal] - Clean up feature flags for overflowInset Reviewed By: nlutsenko Differential Revision: D36990986 fbshipit-source-id: 77da78a2927034893f25937c2ccbd0b53e08031d
1 parent d592bdc commit df80ed4

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ public class ReactFeatureFlags {
8383
/** Enables or disables MapBuffer Serialization */
8484
public static boolean mapBufferSerializationEnabled = false;
8585

86-
/** Feature Flag to use overflowInset values provided by Yoga */
87-
public static boolean useOverflowInset = false;
88-
8986
public static boolean enableLockFreeEventDispatcher = false;
9087

9188
public static boolean enableAggressiveEventEmitterCleanup = false;

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ FabricMountingManager::FabricMountingManager(
4646
config->getBool("react_fabric:disabled_view_preallocation_android")),
4747
disableRevisionCheckForPreallocation_(config->getBool(
4848
"react_fabric:disable_revision_check_for_preallocation")),
49-
useOverflowInset_(getFeatureFlagValue("useOverflowInset")),
5049
shouldRememberAllocatedViews_(
5150
getFeatureFlagValue("shouldRememberAllocatedViews")),
5251
useMapBufferForViewProps_(config->getBool(
@@ -376,9 +375,8 @@ void FabricMountingManager::executeMount(
376375
// children of the current view. The layout of current view may not
377376
// change, and we separate this part from layout mount items to not
378377
// pack too much data there.
379-
if (useOverflowInset_ &&
380-
(oldChildShadowView.layoutMetrics.overflowInset !=
381-
newChildShadowView.layoutMetrics.overflowInset)) {
378+
if (oldChildShadowView.layoutMetrics.overflowInset !=
379+
newChildShadowView.layoutMetrics.overflowInset) {
382380
cppUpdateOverflowInsetMountItems.push_back(
383381
CppMountItem::UpdateOverflowInsetMountItem(
384382
newChildShadowView));
@@ -435,9 +433,8 @@ void FabricMountingManager::executeMount(
435433
// children of the current view. The layout of current view may not
436434
// change, and we separate this part from layout mount items to not
437435
// pack too much data there.
438-
if (useOverflowInset_ &&
439-
newChildShadowView.layoutMetrics.overflowInset !=
440-
EdgeInsets::ZERO) {
436+
if (newChildShadowView.layoutMetrics.overflowInset !=
437+
EdgeInsets::ZERO) {
441438
cppUpdateOverflowInsetMountItems.push_back(
442439
CppMountItem::UpdateOverflowInsetMountItem(
443440
newChildShadowView));

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class FabricMountingManager final {
7272
bool const enableEarlyEventEmitterUpdate_{false};
7373
bool const disablePreallocateViews_{false};
7474
bool const disableRevisionCheckForPreallocation_{false};
75-
bool const useOverflowInset_{false};
7675
bool const shouldRememberAllocatedViews_{false};
7776
bool const useMapBufferForViewProps_{false};
7877

ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import androidx.annotation.Nullable;
2020
import com.facebook.react.bridge.JSApplicationIllegalArgumentException;
2121
import com.facebook.react.bridge.UiThreadUtil;
22-
import com.facebook.react.config.ReactFeatureFlags;
2322
import com.facebook.react.touch.ReactHitSlopView;
2423
import com.facebook.react.uimanager.common.ViewUtil;
2524
import java.util.ArrayList;
@@ -192,7 +191,6 @@ private static View findTouchTargetView(
192191
// If the touch point is outside of the overflowinset for the view, we can safely ignore
193192
// it.
194193
if (ViewUtil.getUIManagerType(view.getId()) == FABRIC
195-
&& ReactFeatureFlags.useOverflowInset
196194
&& !isTouchPointInViewWithOverflowInset(eventCoords[0], eventCoords[1], view)) {
197195
return null;
198196
}

0 commit comments

Comments
 (0)