Skip to content

Commit 86c5c67

Browse files
committed
fix: fix codegen script failing due to missing platforms
there is a regression in the codegen script that assumes `platforms` field to be present. so we add empty objects to avoid the crash during code generation.
1 parent 2f8ae32 commit 86c5c67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/create-react-native-library/templates/native-common-example/example/react-native.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ module.exports = {
2525
dependencies: {
2626
[pkg.name]: {
2727
root: path.join(__dirname, '..'),
28+
platforms: {
29+
// Codegen script incorrectly fails without this
30+
// So we explicitly specify the platforms with empty object
31+
ios: {},
32+
android: {},
33+
},
2834
},
2935
},
3036
};

0 commit comments

Comments
 (0)