mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
More descriptive comment in default.config.js
Reviewed By: foghina Differential Revision: D2575388 fb-gh-sync-id: b28e9ccd7a89409d4d755cfb8d771e5a9e1981b9
This commit is contained in:
committed by
facebook-github-bot-8
parent
0276dde612
commit
2681200ed6
@@ -35,10 +35,11 @@ var config = {
|
||||
|
||||
function getRoots() {
|
||||
if (__dirname.match(/node_modules[\/\\]react-native[\/\\]local-cli$/)) {
|
||||
// packager is running from node_modules of another project
|
||||
// Packager is running from node_modules.
|
||||
// This is the default case for all projects created using 'react-native init'.
|
||||
return [path.resolve(__dirname, '../../..')];
|
||||
} else if (__dirname.match(/Pods[\/\\]React[\/\\]packager$/)) {
|
||||
// packager is running from node_modules of another project
|
||||
// React Native was installed using CocoaPods.
|
||||
return [path.resolve(__dirname, '../../..')];
|
||||
} else {
|
||||
return [path.resolve(__dirname, '..')];
|
||||
|
||||
Reference in New Issue
Block a user