diff --git a/.flowconfig b/.flowconfig index b3c0cf7ed0a8..6d4cec2f2326 100644 --- a/.flowconfig +++ b/.flowconfig @@ -78,6 +78,7 @@ react.runtime=automatic experimental.only_support_flow_fixme_and_expected_error=true experimental.require_suppression_with_error_code=true experimental.invariant_subtyping_error_message_improvement=true +experimental.natural_inference.local_object_literals.followup_fix=true ban_spread_key_props=true diff --git a/packages/react-native/Libraries/Core/Timers/JSTimers.js b/packages/react-native/Libraries/Core/Timers/JSTimers.js index febfc8810d6f..d2922e4cd49b 100644 --- a/packages/react-native/Libraries/Core/Timers/JSTimers.js +++ b/packages/react-native/Libraries/Core/Timers/JSTimers.js @@ -477,8 +477,10 @@ if (!NativeTiming) { ExportedJSTimers = ({ callReactNativeMicrotasks: JSTimers.callReactNativeMicrotasks, queueReactNativeMicrotask: JSTimers.queueReactNativeMicrotask, + // $FlowFixMe[incompatible-variance] }: typeof JSTimers); } else { + // $FlowFixMe[incompatible-variance] ExportedJSTimers = JSTimers; } diff --git a/packages/rn-tester/js/examples/Animated/TransformStylesExample.js b/packages/rn-tester/js/examples/Animated/TransformStylesExample.js index df5f7b63ffbe..4168e877a578 100644 --- a/packages/rn-tester/js/examples/Animated/TransformStylesExample.js +++ b/packages/rn-tester/js/examples/Animated/TransformStylesExample.js @@ -82,6 +82,7 @@ function AnimatedTransformStyleExample(): React.Node { const [properties, setProperties] = useState(transformProperties); const [useNativeDriver, setUseNativeDriver] = useState(false); const onToggle = (property: string) => + // $FlowFixMe[incompatible-type] setProperties({ ...properties, [property]: {