Skip to content

Commit 0e6a420

Browse files
committed
Update react-native.config.js
1 parent db4da7b commit 0e6a420

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

react-native.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const project = (() => {
77
iosProjectPath,
88
windowsProjectPath,
99
} = require('react-native-test-app');
10+
const iosProject = iosProjectPath('ios');
1011
return {
1112
android: {
1213
sourceDir: path.join('example', 'android'),
@@ -15,7 +16,8 @@ const project = (() => {
1516
),
1617
},
1718
ios: {
18-
project: iosProjectPath('example/ios'),
19+
sourceDir: 'example/ios',
20+
...(iosProject ? { project: iosProject } : undefined),
1921
},
2022
windows: fs.existsSync('example/windows/AsyncStorageExample.sln') && {
2123
sourceDir: path.join('example', 'windows'),

0 commit comments

Comments
 (0)