Failed attempt to integrate ViroReact with CocoaPods
This commit is contained in:
40
mobile/rn-cli.config.js
Normal file
40
mobile/rn-cli.config.js
Normal file
@@ -0,0 +1,40 @@
|
||||
'use strict';
|
||||
|
||||
const blacklist = require('metro-bundler/src/blacklist');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
getProjectRoots() {
|
||||
return this._getRoots();
|
||||
},
|
||||
|
||||
getAssetRoots() {
|
||||
return this._getRoots();
|
||||
},
|
||||
|
||||
getAssetExts() {
|
||||
return ["obj", "mtl"];
|
||||
},
|
||||
|
||||
getBlacklistRE() {
|
||||
return blacklist();
|
||||
},
|
||||
|
||||
_getRoots() {
|
||||
// match on either path separator
|
||||
if (__dirname.match(/node_modules[\/\\]react-native[\/\\]packager$/)) {
|
||||
// packager is running from node_modules of another project
|
||||
return [path.resolve(__dirname, '../../..')];
|
||||
} else if (__dirname.match(/Pods\/React\/packager$/)) {
|
||||
// packager is running from node_modules of another project
|
||||
return [path.resolve(__dirname, '../../..')];
|
||||
} else {
|
||||
return [path.resolve(__dirname, '.')];
|
||||
}
|
||||
},
|
||||
|
||||
getTransformModulePath() {
|
||||
return require.resolve('metro-bundler/src/transformer');
|
||||
},
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user