From bed5323374971c4bf41383794fa33cc2489de08c Mon Sep 17 00:00:00 2001 From: Panos Vekris Date: Mon, 7 Oct 2024 19:18:14 -0700 Subject: [PATCH] manually remove instances of '$TEMPORARY$string<>' (#46874) Summary: Remove instances of an unsound flow type Changelog: [internal] Pull Request resolved: https://github.com/facebook/react-native/pull/46874 Reviewed By: SamChou19815 Differential Revision: D63991776 fbshipit-source-id: 1817b1287803d22195bf521e07b3027b86562f47 --- .../src/generators/components/JavaHelpers.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/react-native-codegen/src/generators/components/JavaHelpers.js b/packages/react-native-codegen/src/generators/components/JavaHelpers.js index 9b835bb6f91..b0db82ffdc7 100644 --- a/packages/react-native-codegen/src/generators/components/JavaHelpers.js +++ b/packages/react-native-codegen/src/generators/components/JavaHelpers.js @@ -66,12 +66,7 @@ function getImports( | 'EdgeInsetsPrimitive' | 'ImageSourcePrimitive' | 'PointPrimitive' - | 'DimensionPrimitive' - | $TEMPORARY$string<'ColorPrimitive'> - | $TEMPORARY$string<'EdgeInsetsPrimitive'> - | $TEMPORARY$string<'ImageSourcePrimitive'> - | $TEMPORARY$string<'PointPrimitive'> - | $TEMPORARY$string<'DimensionPrimitive'>, + | 'DimensionPrimitive', ) { switch (name) { case 'ColorPrimitive': @@ -107,6 +102,7 @@ function getImports( const typeAnnotation = prop.typeAnnotation; if (typeAnnotation.type === 'ReservedPropTypeAnnotation') { + // $FlowFixMe[incompatible-call] addImportsForNativeName(typeAnnotation.name); }