Skip to content
Closed
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 @@ -1116,16 +1116,6 @@ const definitions: FeatureFlagDefinitions = {
},
ossReleaseStage: 'none',
},
enableImperativeEvents_DEPRECATED: {
defaultValue: false,
metadata: {
description:
'Deprecated in favor of the common flag with the same name, which is the one that can be configured by OSS release stage. This is only kept so JS bundles delivered to older native builds, where the common flag is unavailable, can still enable the feature.',
expectedReleaseValue: true,
purpose: 'release',
},
ossReleaseStage: 'none',
},
enableNativeEventTargetEventDispatching: {
defaultValue: true,
metadata: {
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<<4eb26b4190d023d26a50f54b6e3ea5eb>>
* @generated SignedSource<<f36d78d946c018d3dd3fc30f6071ee76>>
* @flow strict
* @noformat
*/
Expand Down Expand Up @@ -34,7 +34,6 @@ export type ReactNativeFeatureFlagsJsOnly = Readonly<{
animatedKeepListenersOnDetach: Getter<boolean>,
animatedShouldSyncValueBeforeStartCallback: Getter<boolean>,
deferFlatListFocusChangeRenderUpdate: Getter<boolean>,
enableImperativeEvents_DEPRECATED: Getter<boolean>,
enableNativeEventTargetEventDispatching: Getter<boolean>,
externalElementInspectionEnabled: Getter<boolean>,
fixCrossOrientationNestedListViewability: Getter<boolean>,
Expand Down Expand Up @@ -176,11 +175,6 @@ export const animatedShouldSyncValueBeforeStartCallback: Getter<boolean> = creat
*/
export const deferFlatListFocusChangeRenderUpdate: Getter<boolean> = createJavaScriptFlagGetter('deferFlatListFocusChangeRenderUpdate', false);

/**
* Deprecated in favor of the common flag with the same name, which is the one that can be configured by OSS release stage. This is only kept so JS bundles delivered to older native builds, where the common flag is unavailable, can still enable the feature.
*/
export const enableImperativeEvents_DEPRECATED: Getter<boolean> = createJavaScriptFlagGetter('enableImperativeEvents_DEPRECATED', false);

/**
* When enabled, the React Native renderer dispatches events through the W3C EventTarget API (addEventListener/dispatchEvent) instead of the legacy plugin-based system.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,12 @@ ReactNativeElement_public.prototype = ReactNativeElement.prototype;
// `removeEventListener`, `dispatchEvent`) is only inherited by this final class
// when `enableNativeEventTargetEventDispatching` is enabled (which makes
// `ReadOnlyNode` extend `EventTarget`). Until that public API is finalized, it
// is gated behind `enableImperativeEvents` (or its deprecated JS-only
// counterpart, `enableImperativeEvents_DEPRECATED`): when both flags are off we
// remove those methods from this final class. Native/internal event dispatch
// does not rely on these public methods, so removing them is safe.
// is gated behind `enableImperativeEvents`: when off we remove those methods
// from this final class. Native/internal event dispatch does not rely on these
// public methods, so removing them is safe.
if (
ReactNativeFeatureFlags.enableNativeEventTargetEventDispatching() &&
!ReactNativeFeatureFlags.enableImperativeEvents() &&
!ReactNativeFeatureFlags.enableImperativeEvents_DEPRECATED()
!ReactNativeFeatureFlags.enableImperativeEvents()
) {
const prototype: interface {
addEventListener?: unknown,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ ReadOnlyText_public.prototype = ReadOnlyText.prototype;
// `removeEventListener`, `dispatchEvent`) is only inherited by this final class
// when `enableNativeEventTargetEventDispatching` is enabled (which makes
// `ReadOnlyNode` extend `EventTarget`). Until that public API is finalized, it
// is gated behind `enableImperativeEvents` (or its deprecated JS-only
// counterpart, `enableImperativeEvents_DEPRECATED`): when both flags are off we
// remove those methods from this final class. Native/internal event dispatch
// does not rely on these public methods, so removing them is safe.
// is gated behind `enableImperativeEvents`: when off we remove those methods
// from this final class. Native/internal event dispatch does not rely on these
// public methods, so removing them is safe.
if (
ReactNativeFeatureFlags.enableNativeEventTargetEventDispatching() &&
!ReactNativeFeatureFlags.enableImperativeEvents() &&
!ReactNativeFeatureFlags.enableImperativeEvents_DEPRECATED()
!ReactNativeFeatureFlags.enableImperativeEvents()
) {
const prototype: interface {
addEventListener?: unknown,
Expand Down
Loading