Skip to content

Commit 5a70b27

Browse files
committed
fix: add react-native-test-app specific config conditionally
1 parent 6a2f3da commit 5a70b27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
const path = require('path');
22
const pak = require('../package.json');
3+
<% if (example === 'test-app') { -%>
34
const { configureProjects } = require('react-native-test-app');
5+
<% } -%>
46

57
module.exports = {
8+
<% if (example === 'test-app') { -%>
69
project: configureProjects({
710
android: {
811
sourceDir: 'android',
@@ -11,6 +14,7 @@ module.exports = {
1114
sourceDir: 'ios',
1215
},
1316
}),
17+
<% } -%>
1418
dependencies: {
1519
[pak.name]: {
1620
root: path.join(__dirname, '..'),

0 commit comments

Comments
 (0)