Skip to content

Commit a520b80

Browse files
committed
Bring back callstack#715 to fix Android builds for Fabric components
1 parent 1fde128 commit a520b80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/create-react-native-library/templates/common-local/$package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<% if (project.arch === 'new') { -%>
77
"codegenConfig": {
88
"name": "RN<%- project.name -%><%- project.viewConfig !== null ? 'View': '' -%>Spec",
9-
"type": <%- project.viewConfig !== null ? '"components"': '"modules"' %>,
9+
"type": <%- project.viewConfig !== null ? '"all"': '"modules"' %>,
1010
"jsSrcsDir": "src"
1111
},
1212
<% } -%>

packages/create-react-native-library/templates/common/$package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<% if (project.moduleConfig === 'nitro-modules') { -%>
116116
"react-native": "*",
117117
"react-native-nitro-modules": "^<%- versions.nitroModules %>"
118-
<% } else { -%>
118+
<% } else { -%>
119119
"react-native": "*"
120120
<% } -%>
121121
},
@@ -224,7 +224,7 @@
224224
},
225225
"codegenConfig": {
226226
"name": "RN<%- project.name -%><%- project.viewConfig !== null ? 'View': '' -%>Spec",
227-
"type": "<%- project.viewConfig !== null ? 'components': 'modules' -%>",
227+
"type": "<%- project.viewConfig !== null ? 'all': 'modules' -%>",
228228
"jsSrcsDir": "src",
229229
"outputDir": {
230230
"ios": "ios/generated",

0 commit comments

Comments
 (0)