Skip to content

Commit

Permalink
feat: remove the View prefix from view codegens
Browse files Browse the repository at this point in the history
  • Loading branch information
atlj committed Jun 11, 2024
1 parent 2a9cc9e commit 5e20c86
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
<% if (project.arch !== 'legacy') { -%>
},
"codegenConfig": {
"name": "RN<%- project.name -%><%- project.view ? 'View': '' -%>Spec",
"name": "RN<%- project.name -%>Spec",
"type": <%- project.view && project.module ? '"all"' : project.view ? '"components"': '"modules"' %>,
"jsSrcsDir": "src"
<% } -%>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifdef RCT_NEW_ARCH_ENABLED
#import "<%- project.name -%>View.h"

#import <react/renderer/components/RN<%- project.name -%>ViewSpec/ComponentDescriptors.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/EventEmitters.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/Props.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/RCTComponentViewHelpers.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/ComponentDescriptors.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/EventEmitters.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/Props.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/RCTComponentViewHelpers.h>

#import "RCTFabricComponentsPlugins.h"
#import "Utils.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifdef RCT_NEW_ARCH_ENABLED
#import "<%- project.name -%>View.h"

#import <react/renderer/components/RN<%- project.name -%>ViewSpec/ComponentDescriptors.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/EventEmitters.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/Props.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/RCTComponentViewHelpers.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/ComponentDescriptors.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/EventEmitters.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/Props.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/RCTComponentViewHelpers.h>

#import "RCTFabricComponentsPlugins.h"
#import "Utils.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#import "<%- project.name -%>View.h"

#import <react/renderer/components/RN<%- project.name -%>ViewSpec/ComponentDescriptors.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/EventEmitters.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/Props.h>
#import <react/renderer/components/RN<%- project.name -%>ViewSpec/RCTComponentViewHelpers.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/ComponentDescriptors.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/EventEmitters.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/Props.h>
#import <react/renderer/components/RN<%- project.name -%>Spec/RCTComponentViewHelpers.h>

#import "RCTFabricComponentsPlugins.h"

Expand Down

0 comments on commit 5e20c86

Please sign in to comment.