Skip to content

Commit 242728d

Browse files
Abbondanzometa-codesync[bot]
authored andcommitted
Set sweepActiveTouchOnChildNativeGesturesAndroid default feature flag value to true (facebook#54307)
Summary: Pull Request resolved: facebook#54307 First of the remaining steps to fully rollout `sweepActiveTouchOnChildNativeGesturesAndroid`. It's already enabled by default everywhere an override is set, letting this bake for a week then going to remove Changelog: [Internal] Reviewed By: javache Differential Revision: D85700377 fbshipit-source-id: 81f5b8679e5562ba6c5dfae331052b181b5258ec
1 parent a797337 commit 242728d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<7987eba84c39c6e8cb6494092a94790e>>
7+
* @generated SignedSource<<3ab7c812090eec90ebb2bbaffd170729>>
88
*/
99

1010
/**
@@ -147,7 +147,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
147147

148148
override fun skipActivityIdentityAssertionOnHostPause(): Boolean = false
149149

150-
override fun sweepActiveTouchOnChildNativeGesturesAndroid(): Boolean = false
150+
override fun sweepActiveTouchOnChildNativeGesturesAndroid(): Boolean = true
151151

152152
override fun traceTurboModulePromiseRejectionsOnAndroid(): Boolean = false
153153

packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<21049b33fc72200390c6dd6d0ca27c19>>
7+
* @generated SignedSource<<2c21515e9a083d91c7ce798f967def86>>
88
*/
99

1010
/**
@@ -276,7 +276,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
276276
}
277277

278278
bool sweepActiveTouchOnChildNativeGesturesAndroid() override {
279-
return false;
279+
return true;
280280
}
281281

282282
bool traceTurboModulePromiseRejectionsOnAndroid() override {

packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ const definitions: FeatureFlagDefinitions = {
710710
ossReleaseStage: 'none',
711711
},
712712
sweepActiveTouchOnChildNativeGesturesAndroid: {
713-
defaultValue: false,
713+
defaultValue: true,
714714
metadata: {
715715
dateAdded: '2025-07-30',
716716
description:

packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<d8ae80ae606b6cf56ea06866b5e5ac99>>
7+
* @generated SignedSource<<67997afcb69af22e40879f7b7923052b>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -468,7 +468,7 @@ export const skipActivityIdentityAssertionOnHostPause: Getter<boolean> = createN
468468
/**
469469
* A flag to tell Fabric to sweep active touches from JSTouchDispatcher in Android when a child native gesture is started.
470470
*/
471-
export const sweepActiveTouchOnChildNativeGesturesAndroid: Getter<boolean> = createNativeFlagGetter('sweepActiveTouchOnChildNativeGesturesAndroid', false);
471+
export const sweepActiveTouchOnChildNativeGesturesAndroid: Getter<boolean> = createNativeFlagGetter('sweepActiveTouchOnChildNativeGesturesAndroid', true);
472472
/**
473473
* Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.
474474
*/

0 commit comments

Comments
 (0)