Skip to content

Commit 577fd15

Browse files
committed
fix: add missing codegen config for mixed template for iOS
1 parent f76ca8d commit 577fd15

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
}
168168
]
169169
]
170-
<% if (project.arch === "new") { -%>
170+
<% if (project.arch !== 'legacy') { -%>
171171
},
172172
"codegenConfig": {
173173
"name": "RN<%- project.name -%><%- project.view ? 'View': '' -%>Spec",

packages/create-react-native-library/templates/common/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ yarn clean
5757
```
5858

5959
<% } -%>
60-
<% if (project.arch === 'new' || project.arch === 'mixed') { -%>
60+
<% if (project.arch !== 'legacy') { -%>
6161
To confirm that the app is running with the new architecture, you can check the Metro logs for a message like this:
6262

6363
```sh

packages/create-react-native-library/templates/native-common/{%- project.identifier %}.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
1111
s.license = package["license"]
1212
s.authors = package["author"]
1313

14-
s.platforms = { :ios => <%- project.arch === "new" ? '"11.0"': '"10.0"' -%> }
14+
s.platforms = { :ios => "11.0" }
1515
s.source = { :git => "<%- repo -%>.git", :tag => "#{s.version}" }
1616

1717
<% if (project.cpp) { -%>
@@ -32,7 +32,7 @@ Pod::Spec.new do |s|
3232
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
3333
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
3434
}
35-
<% if(project.arch === "new" && project.view) { -%>
35+
<% if (project.view) { -%>
3636
s.dependency "React-RCTFabric"
3737
<% } -%>
3838
s.dependency "React-Codegen"

0 commit comments

Comments
 (0)