From 1bab3e24b887259e29626835e6bb944d105dff59 Mon Sep 17 00:00:00 2001 From: Mikhail Mikhaylov <9201284+mikemikhaylov@users.noreply.github.com> Date: Mon, 23 Jan 2023 05:10:41 -0800 Subject: [PATCH] Removes duplicate DoubleTypeAnnotation label (#35920) Summary: Removes duplicate `DoubleTypeAnnotation` label since it is already presented in the same `switch` statement on https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/generators/components/GeneratePropsH.js#L658 ## Changelog [GENERAL] [FIXED] - Removes duplicate DoubleTypeAnnotation label Pull Request resolved: https://github.com/facebook/react-native/pull/35920 Test Plan: No tests needed Reviewed By: cortinico Differential Revision: D42673897 Pulled By: jacdebug fbshipit-source-id: d4603364a26bda83990b65f76b93781a7152f1cb --- .../src/generators/components/GeneratePropsH.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react-native-codegen/src/generators/components/GeneratePropsH.js b/packages/react-native-codegen/src/generators/components/GeneratePropsH.js index 008c5d410611e0..cd0546a8b21251 100644 --- a/packages/react-native-codegen/src/generators/components/GeneratePropsH.js +++ b/packages/react-native-codegen/src/generators/components/GeneratePropsH.js @@ -667,8 +667,6 @@ function generateStruct( return; case 'Int32EnumTypeAnnotation': return; - case 'DoubleTypeAnnotation': - return; case 'ObjectTypeAnnotation': const props = property.typeAnnotation.properties; if (props == null) {