Skip to content

Commit e83162a

Browse files
authored
Promote ResizeObserver to canary
Summary: Enable `ResizeObserver` in the canary channel so app and library developers can try the API before it becomes a stable default. Keep the stable default off. The experimental channel inherits the canary override. Changelog: [General][Changed] - Enable `ResizeObserver` in the canary channel Differential Revision: D135323655 Pull Request resolved: #60431
1 parent 89446b2 commit e83162a

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
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<<f516272583021236cf5a1594b80104b2>>
7+
* @generated SignedSource<<4defd7055dabab0a11205742b06bcb7a>>
88
*/
99

1010
/**
@@ -29,6 +29,8 @@ public open class ReactNativeFeatureFlagsOverrides_RNOSS_Canary_Android : ReactN
2929

3030
override fun enableIntersectionObserverByDefault(): Boolean = true
3131

32+
override fun enableResizeObserverByDefault(): Boolean = true
33+
3234
override fun enableSwiftUIBasedFilters(): Boolean = true
3335

3436
override fun fixBorderlessRippleAndroid(): Boolean = true

‎packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSCanary.h‎

Lines changed: 5 additions & 1 deletion
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<<a1bae43cd758186d0ef2bd0bbc0784ee>>
7+
* @generated SignedSource<<99ea4b4d982b5149e7400e2ad0a45efd>>
88
*/
99

1010
/**
@@ -41,6 +41,10 @@ class ReactNativeFeatureFlagsOverridesOSSCanary : public ReactNativeFeatureFlags
4141
return true;
4242
}
4343

44+
bool enableResizeObserverByDefault() override {
45+
return true;
46+
}
47+
4448
bool enableSwiftUIBasedFilters() override {
4549
return true;
4650
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ const definitions: FeatureFlagDefinitions = {
617617
expectedReleaseValue: true,
618618
purpose: 'release',
619619
},
620-
ossReleaseStage: 'none',
620+
ossReleaseStage: 'canary',
621621
},
622622
enableSwiftUIBasedFilters: {
623623
defaultValue: false,

0 commit comments

Comments
 (0)