From 6c10df5c90a92ad04d2fa97fff8fad36126dc5b3 Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Wed, 23 Nov 2022 01:41:23 -0800 Subject: [PATCH] update graphics imports Summary: i recently made a change to modularize some of our graphics dependencies i think this codegen will be incorrect now after my diff, so i updated it so we would codegen the correct deps Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D41451842 fbshipit-source-id: 98b5576e9fbd2d693c8bcfeac39d8dfb1b1e0584 --- .../__snapshots__/GeneratePropsH-test.js.snap | 8 ++++---- .../components/ComponentsGeneratorUtils.js | 4 ++-- .../__snapshots__/GeneratePropsH-test.js.snap | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GeneratePropsH-test.js.snap b/packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GeneratePropsH-test.js.snap index ba79b2cf4149fb..d272afef823b9a 100644 --- a/packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GeneratePropsH-test.js.snap +++ b/packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GeneratePropsH-test.js.snap @@ -18,7 +18,7 @@ Object { #include #include #include -#include +#include #include #include @@ -567,7 +567,7 @@ Object { #include #include #include -#include +#include #include namespace facebook { @@ -647,7 +647,7 @@ Object { #include #include #include -#include +#include #include #include @@ -810,7 +810,7 @@ Object { #include #include #include -#include +#include namespace facebook { namespace react { diff --git a/packages/react-native-codegen/src/generators/components/ComponentsGeneratorUtils.js b/packages/react-native-codegen/src/generators/components/ComponentsGeneratorUtils.js index 5e6b6c9aeb3b69..22755be313d908 100644 --- a/packages/react-native-codegen/src/generators/components/ComponentsGeneratorUtils.js +++ b/packages/react-native-codegen/src/generators/components/ComponentsGeneratorUtils.js @@ -234,10 +234,10 @@ function getLocalImports( imports.add('#include '); return; case 'PointPrimitive': - imports.add('#include '); + imports.add('#include '); return; case 'EdgeInsetsPrimitive': - imports.add('#include '); + imports.add('#include '); return; default: (name: empty); diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsH-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsH-test.js.snap index 7f8a84fe002064..621f2e95fa8eca 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsH-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsH-test.js.snap @@ -18,7 +18,7 @@ Map { #include #include #include -#include +#include #include #include @@ -235,7 +235,7 @@ Map { #include #include #include -#include +#include #include #include @@ -800,7 +800,7 @@ Map { #include #include #include -#include +#include namespace facebook { namespace react { @@ -975,7 +975,7 @@ Map { #include #include #include -#include +#include #include namespace facebook { @@ -1055,7 +1055,7 @@ Map { #include #include #include -#include +#include #include #include @@ -1308,7 +1308,7 @@ Map { #include #include #include -#include +#include namespace facebook { namespace react {