diff --git a/src/bin/storybook-start.js b/src/bin/storybook-start.js index 07ca405..fd9855b 100644 --- a/src/bin/storybook-start.js +++ b/src/bin/storybook-start.js @@ -27,9 +27,11 @@ server.listen(...listenAddr, function (err) { console.info(`\nReact Native Storybook started on => ${address}\n`); }); +const projectRoots = configDir === projectDir ? [configDir] : [configDir, projectDir]; + // RN packager shelljs.exec([ 'node node_modules/react-native/local-cli/cli.js start', - `--projectRoots ${configDir}`, + `--projectRoots ${projectRoots.join(',')}`, `--root ${projectDir}`, ].join(' '), {async: true});