Giter VIP home page Giter VIP logo

Comments (10)

dannyhw avatar dannyhw commented on June 10, 2024

If you want the server to work you need to go into the example app and enable websockets, not sure if they are on by default in the example app.

from react-native.

mljlynch avatar mljlynch commented on June 10, 2024

enableWebsockets is set to true by default in getStorybookUI - however yarn web fails with:

Unable to resolve "telejson" from "../../node_modules/@storybook/channel-websocket/dist/esm/index.js"

I can get the server started by running:

npx react-native-storybook-server

But this leads to the infinite spinner above.

from react-native.

dannyhw avatar dannyhw commented on June 10, 2024

@mljlynch make sure you are on the right branch, you need to be on the next branch. Otherwise you'll be running old code.

from react-native.

mljlynch avatar mljlynch commented on June 10, 2024

This is on a fresh clone so I am on the next branch by default.

from react-native.

dannyhw avatar dannyhw commented on June 10, 2024

after you open the mobile app and the server ui can you try refreshing the mobile ui for example by hitting r, usually that gets it working

from react-native.

dannyhw avatar dannyhw commented on June 10, 2024

and yeah if I remember correctly yarn web will fail currently just because metro web isn't working correctly with some esm stuff. Might need to add the webpack version back for a bit.

However you should be able to try stuff with android/ios

from react-native.

mljlynch avatar mljlynch commented on June 10, 2024

yes confirmed working for iOS.

from react-native.

mljlynch avatar mljlynch commented on June 10, 2024

woah ok that works. let's goooooo!

from react-native.

mljlynch avatar mljlynch commented on June 10, 2024

Ok It works,BUT it won't switch through the components it just shows the default body:

image

from react-native.

dannyhw avatar dannyhw commented on June 10, 2024

@mljlynch the server ui doesn't have any preview its just for controlling the mobile device UI. There is another project for react native web storybook http://github.com/storybookjs/addon-react-native-web that runs on reactjs storybook. If you're looking to see components on the web you should go there.

from react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.