Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<3ca183dbeeb3fdeac98780267df9dff2>>
* @generated SignedSource<<3da98011fe16f2528180a7e07551d2df>>
*/

/**
Expand Down Expand Up @@ -129,7 +129,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi

override fun enableResizeObserverByDefault(): Boolean = false

override fun enableSwiftUIBasedFilters(): Boolean = false
override fun enableSwiftUIBasedFilters(): Boolean = true

override fun enableViewCulling(): Boolean = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<4defd7055dabab0a11205742b06bcb7a>>
* @generated SignedSource<<4282cd7f21c76cc38b247ddba0bfd4d2>>
*/

/**
Expand All @@ -31,8 +31,6 @@ public open class ReactNativeFeatureFlagsOverrides_RNOSS_Canary_Android : ReactN

override fun enableResizeObserverByDefault(): Boolean = true

override fun enableSwiftUIBasedFilters(): Boolean = true

override fun fixBorderlessRippleAndroid(): Boolean = true

override fun fixProgrammaticScrollMomentumEventsIOS(): Boolean = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<3f0de97f1127a4c958beb355dd89aa49>>
* @generated SignedSource<<b59b11f86ea45425c649de90b9901a24>>
*/

/**
Expand Down Expand Up @@ -242,7 +242,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
}

bool enableSwiftUIBasedFilters() override {
return false;
return true;
}

bool enableViewCulling() override {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<99ea4b4d982b5149e7400e2ad0a45efd>>
* @generated SignedSource<<e0bf9ac4241e44c5c054b2d58840dd79>>
*/

/**
Expand Down Expand Up @@ -45,10 +45,6 @@ class ReactNativeFeatureFlagsOverridesOSSCanary : public ReactNativeFeatureFlags
return true;
}

bool enableSwiftUIBasedFilters() override {
return true;
}

bool fixBorderlessRippleAndroid() override {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,15 +620,15 @@ const definitions: FeatureFlagDefinitions = {
ossReleaseStage: 'canary',
},
enableSwiftUIBasedFilters: {
defaultValue: false,
defaultValue: true,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this default, the SwiftUI path no longer follows the order of the filter list. SwiftUIContainerView always applies the modifiers in one fixed order: blur, grayscale, shadow, saturation, contrast, then hue rotation. Each update* call also replaces the previous value. Example: filter: [{dropShadow: '0 4px 8px red'}, {grayscale: 1}] should give a gray shadow, as CSS and Android do, but iOS keeps the red shadow because grayscale runs before the shadow is added. Example: filter: [{blur: 2}, {blur: 2}] applies only one blur. Should this be fixed before the default flips, or at least listed as a known limitation in the changelog?

metadata: {
dateAdded: '2025-07-30',
description:
'When enabled, it will use SwiftUI for filter effects like blur on iOS.',
expectedReleaseValue: true,
purpose: 'experimentation',
},
ossReleaseStage: 'canary',
ossReleaseStage: 'stable',
},
enableViewCulling: {
defaultValue: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<96fba2f12c24ed676fa6511735fc8cce>>
* @generated SignedSource<<0a083f07fa1309bddaf21787832341be>>
* @flow strict
* @noformat
*/
Expand Down Expand Up @@ -437,7 +437,7 @@ export const enableResizeObserverByDefault: Getter<boolean> = createNativeFlagGe
/**
* When enabled, it will use SwiftUI for filter effects like blur on iOS.
*/
export const enableSwiftUIBasedFilters: Getter<boolean> = createNativeFlagGetter('enableSwiftUIBasedFilters', false);
export const enableSwiftUIBasedFilters: Getter<boolean> = createNativeFlagGetter('enableSwiftUIBasedFilters', true);
/**
* Enables View Culling: as soon as a view goes off screen, it can be reused anywhere in the UI and pieced together with other items to create new UI elements.
*/
Expand Down
Loading