Skip to content

Commit bb66b72

Browse files
committed
fix: Prevent stale Fabric mount updates from overriding newer Native Animated synchronous prop updates.
1 parent 7128482 commit bb66b72

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

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<<d2b14345bf627e35562530912b3aae1f>>
7+
* @generated SignedSource<<a9a8ce443fa160a7494fc1c9e7baa02f>>
88
*/
99

1010
/**
@@ -153,7 +153,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
153153

154154
override fun hideOffscreenVirtualViewsOnIOS(): Boolean = false
155155

156-
override fun overrideBySynchronousMountPropsAtMountingAndroid(): Boolean = false
156+
override fun overrideBySynchronousMountPropsAtMountingAndroid(): Boolean = true
157157

158158
override fun perfIssuesEnabled(): Boolean = false
159159

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<<4a2fd61cbcdb28042f09ccb03c970674>>
7+
* @generated SignedSource<<d987528598996fc7b1bf3c872f51e2ed>>
88
*/
99

1010
/**
@@ -288,7 +288,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
288288
}
289289

290290
bool overrideBySynchronousMountPropsAtMountingAndroid() override {
291-
return false;
291+
return true;
292292
}
293293

294294
bool perfIssuesEnabled() override {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ const definitions: FeatureFlagDefinitions = {
743743
ossReleaseStage: 'none',
744744
},
745745
overrideBySynchronousMountPropsAtMountingAndroid: {
746-
defaultValue: false,
746+
defaultValue: true,
747747
metadata: {
748748
dateAdded: '2025-09-04',
749749
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<<aa202d346e68c3dd641d557306964ebe>>
7+
* @generated SignedSource<<1dd51a152bb30c0e2073a14566c8368d>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -468,7 +468,7 @@ export const hideOffscreenVirtualViewsOnIOS: Getter<boolean> = createNativeFlagG
468468
/**
469469
* Override props at mounting with synchronously mounted (i.e. direct manipulation) props from Native Animated.
470470
*/
471-
export const overrideBySynchronousMountPropsAtMountingAndroid: Getter<boolean> = createNativeFlagGetter('overrideBySynchronousMountPropsAtMountingAndroid', false);
471+
export const overrideBySynchronousMountPropsAtMountingAndroid: Getter<boolean> = createNativeFlagGetter('overrideBySynchronousMountPropsAtMountingAndroid', true);
472472
/**
473473
* Enable reporting Performance Issues (`detail.devtools.performanceIssue`). Displayed in the V2 Performance Monitor and the "Performance Issues" sub-panel in DevTools.
474474
*/

0 commit comments

Comments
 (0)