Storybook: Display StorybookUI in your app in React Native

Created on 21 Mar 2019  路  2Comments  路  Source: storybookjs/storybook

The App that we are currently developing is migrated to latest versions of react native and storybook. (React-Native 0.59 with Storybook 5)

previous situation: Storybook4, running via $ react-native start --projectRoot storybook
current situation: Running StorybookUI via replacing projectRoot is not working anymore. (previous approach is not working)

Also as it is documentation describes:
Storybook for React Native in "Display StorybookUI in your app" section, this StorybookUI should be exported as the default component. Another idea is to use it somewhere inside the app which seems to me like an odd behaviour. The production bundle will have all unnecessary components and add-ons (possibly).

Is there a better way integrate Storybook in React Native?

react-native question / support

Most helpful comment

It was a regression in the RN CLI, installing latest via yarn add @react-native-community/cli --dev should fix the issue.

All 2 comments

@amed Pretty sure that suggestion is just for development mode. Nobody wants extra stuff in their production app? cc @benoitdion @Gongreg

It was a regression in the RN CLI, installing latest via yarn add @react-native-community/cli --dev should fix the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

levithomason picture levithomason  路  3Comments

miljan-aleksic picture miljan-aleksic  路  3Comments

sakulstra picture sakulstra  路  3Comments

MrOrz picture MrOrz  路  3Comments

tlrobinson picture tlrobinson  路  3Comments