Skip to content

Commit

Permalink
Update react-native.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
j-piasecki committed Feb 9, 2023
1 parent db4da7b commit 0e6a420
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const project = (() => {
iosProjectPath,
windowsProjectPath,
} = require('react-native-test-app');
const iosProject = iosProjectPath('ios');
return {
android: {
sourceDir: path.join('example', 'android'),
Expand All @@ -15,7 +16,8 @@ const project = (() => {
),
},
ios: {
project: iosProjectPath('example/ios'),
sourceDir: 'example/ios',
...(iosProject ? { project: iosProject } : undefined),
},
windows: fs.existsSync('example/windows/AsyncStorageExample.sln') && {
sourceDir: path.join('example', 'windows'),
Expand Down

0 comments on commit 0e6a420

Please sign in to comment.