mirror of
https://github.com/status-im/react-native.git
synced 2025-02-11 00:46:32 +00:00
This commit is contained in:
parent
71f08d2cb2
commit
fc52ed6301
@ -68,9 +68,13 @@ if (options.assetRoots) {
|
|||||||
if (!Array.isArray(options.assetRoots)) {
|
if (!Array.isArray(options.assetRoots)) {
|
||||||
options.assetRoots = options.assetRoots.split(',');
|
options.assetRoots = options.assetRoots.split(',');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (__dirname.match(/node_modules\/react-native\/packager$/)) {
|
||||||
|
options.assetRoots = [path.resolve(__dirname, '../../..')];
|
||||||
} else {
|
} else {
|
||||||
options.assetRoots = [path.resolve(__dirname, '..')];
|
options.assetRoots = [path.resolve(__dirname, '..')];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
console.log('\n' +
|
console.log('\n' +
|
||||||
' ===============================================================\n' +
|
' ===============================================================\n' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user