From 82a40aff7e5c04a760614da879501c5f454b1100 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sat, 26 Aug 2017 00:41:26 -0700 Subject: [PATCH] Install `@storybook/react-native` in RN getstorybook --- lib/cli/generators/REACT_NATIVE/index.js | 4 ++-- lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cli/generators/REACT_NATIVE/index.js b/lib/cli/generators/REACT_NATIVE/index.js index eded1d6d68b0..9419a092feeb 100644 --- a/lib/cli/generators/REACT_NATIVE/index.js +++ b/lib/cli/generators/REACT_NATIVE/index.js @@ -6,7 +6,7 @@ const chalk = require('chalk'); const helpers = require('../../lib/helpers'); module.exports = Promise.all([ - latestVersion('@storybook/react'), + latestVersion('@storybook/react-native'), latestVersion('@storybook/addon-actions'), latestVersion('@storybook/addon-links'), latestVersion('prop-types'), @@ -33,7 +33,7 @@ module.exports = Promise.all([ packageJson.dependencies = packageJson.dependencies || {}; packageJson.devDependencies = packageJson.devDependencies || {}; - packageJson.devDependencies['@storybook/react'] = `^${storybookVersion}`; + packageJson.devDependencies['@storybook/react-native'] = `^${storybookVersion}`; packageJson.devDependencies['@storybook/addon-actions'] = `^${actionsVersion}`; packageJson.devDependencies['@storybook/addon-links'] = `^${linksVersion}`; diff --git a/lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js b/lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js index 42e704fb94be..560f5b44ef83 100644 --- a/lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js +++ b/lib/cli/generators/REACT_NATIVE_SCRIPTS/index.js @@ -4,7 +4,7 @@ const path = require('path'); const latestVersion = require('latest-version'); module.exports = Promise.all([ - latestVersion('@storybook/react'), + latestVersion('@storybook/react-native'), latestVersion('@storybook/addon-actions'), latestVersion('@storybook/addon-links'), latestVersion('prop-types'), @@ -17,7 +17,7 @@ module.exports = Promise.all([ packageJson.dependencies = packageJson.dependencies || {}; packageJson.devDependencies = packageJson.devDependencies || {}; - packageJson.devDependencies['@storybook/react'] = `^${storybookVersion}`; + packageJson.devDependencies['@storybook/react-native'] = `^${storybookVersion}`; packageJson.devDependencies['@storybook/addon-actions'] = `^${actionsVersion}`; packageJson.devDependencies['@storybook/addon-links'] = `^${linksVersion}`;