diff --git a/react-native.config.js b/react-native.config.js index 2f63b22f..db8fdf18 100644 --- a/react-native.config.js +++ b/react-native.config.js @@ -1,6 +1,3 @@ -const path = require("path"); -const { generate } = require("./dist/commonjs/generate"); - module.exports = { commands: [ { @@ -45,6 +42,9 @@ module.exports = { { project: { android, ios } }, { backgroundColor, logoWidth, assetsPath, flavor, platforms }, ) => { + const path = require("path"); + const { generate } = require("./dist/commonjs/generate"); + const workingPath = process.env.INIT_CWD || process.env.PWD || process.cwd();