We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71f08d2 + fc52ed6 commit 89fc8a4Copy full SHA for 89fc8a4
1 file changed
packager/packager.js
@@ -69,7 +69,11 @@ if (options.assetRoots) {
69
options.assetRoots = options.assetRoots.split(',');
70
}
71
} else {
72
- options.assetRoots = [path.resolve(__dirname, '..')];
+ if (__dirname.match(/node_modules\/react-native\/packager$/)) {
73
+ options.assetRoots = [path.resolve(__dirname, '../../..')];
74
+ } else {
75
+ options.assetRoots = [path.resolve(__dirname, '..')];
76
+ }
77
78
79
console.log('\n' +
0 commit comments