Storybook: can't see web in react native

Created on 17 Oct 2017  路  12Comments  路  Source: storybookjs/storybook

image
I use it in react native but it doesn't work in web but is ok in simulator
image

react-native inactive question / support

Most helpful comment

@zhaoheqi Read careful at this docs, hope this help: https://github.com/storybooks/storybook/tree/master/app/react-native#start-storybook

  • In react native app, we seems as can't see stories on web browsers. Only see list menu of stories.
  • You must run react native app by run: react-native run-<platform>.
  • Once your app is started, changing the selected story in web browser will update the story displayed within your mobile app.

All 12 comments

I had this same issue. Upgrading to babel 6 fixed my problem. See https://github.com/storybooks/storybook/issues/13#issuecomment-323816036

@hellogerard I try it but it doesn't work

@zhaoheqi Read careful at this docs, hope this help: https://github.com/storybooks/storybook/tree/master/app/react-native#start-storybook

  • In react native app, we seems as can't see stories on web browsers. Only see list menu of stories.
  • You must run react native app by run: react-native run-<platform>.
  • Once your app is started, changing the selected story in web browser will update the story displayed within your mobile app.

@quyentranvan which do we run first?

npm run storybook or react-native run-<platform>.

@waltermvp It doesn't matter: they should run in parallel, in separate terminal tabs

@Hypnosphi
the description on this page is little misleading

With Storybook for React Native you can design and develop individual React Native components without running your app.

You don't actually run your app, see
https://github.com/storybooks/storybook/tree/master/app/react-native#create-react-native-app-crna

but we do need to run emulator right?
Stories list is blank until I run emulator.
screen shot 2017-12-13 at 11 58 58 pm
Also preview is not available in browser. Need emulator running to preview changes.

No, you can't view RN stories in desktop browser currently

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks!

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

@zhaoheqi Did you fixed the issue? I am also getting the same issue.

Was this page helpful?
0 / 5 - 0 ratings