diff --git a/packages/react-native/Libraries/vendor/emitter/EventEmitter.js b/packages/react-native/Libraries/vendor/emitter/EventEmitter.js index 9f60d3e8ee31..6014db5bd7c9 100644 --- a/packages/react-native/Libraries/vendor/emitter/EventEmitter.js +++ b/packages/react-native/Libraries/vendor/emitter/EventEmitter.js @@ -149,6 +149,7 @@ export default class EventEmitter< // $FlowFixMe[incompatible-type] this.#registry = {}; } else { + // $FlowFixMe[cannot-write] delete this.#registry[eventType]; } } @@ -178,6 +179,7 @@ function allocate< registry[eventType]; if (registrations == null) { registrations = new Set(); + // $FlowFixMe[cannot-write] registry[eventType] = registrations; } return registrations; diff --git a/private/react-native-fantom/runner/getFantomTestConfigs.js b/private/react-native-fantom/runner/getFantomTestConfigs.js index d86d7c91617c..91d88b9e84c3 100644 --- a/private/react-native-fantom/runner/getFantomTestConfigs.js +++ b/private/react-native-fantom/runner/getFantomTestConfigs.js @@ -121,6 +121,7 @@ export function getOverrides( config.flags[flagType], )) { if (flagValue !== DEFAULT_FEATURE_FLAGS[flagType][flagName]) { + // $FlowFixMe[cannot-write] flags[flagType][flagName] = flagValue; } } @@ -356,6 +357,7 @@ export default function getFantomTestConfigs( flagConfig.defaultValue, rawValue, ); + // $FlowFixMe[cannot-write] config.flags.common[name] = value; } } else if (ReactNativeFeatureFlags.jsOnly[name]) { @@ -375,6 +377,7 @@ export default function getFantomTestConfigs( flagConfig.defaultValue, rawValue, ); + // $FlowFixMe[cannot-write] config.flags.jsOnly[name] = value; } } else {