diff --git a/packages/react-native-codegen/src/generators/components/JavaHelpers.js b/packages/react-native-codegen/src/generators/components/JavaHelpers.js index 9b835bb6f91820..b0db82ffdc7102 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); }