-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for Comments: Remove browser UI from React-Native #3293
Comments
@Gongreg @shilman @Hypnosphi @ndelangen opinions? |
|
I don't agree with removing browser side ui. I like having option to integrate storybook with ide addons (like in vscode or webstorm). They are expecting rn to use websockets. Also when developing I like to have multiple devices running at same time on same storybook (android, ios, multiple ios devices and so on). |
We currently only have 2 RN compatible addons that require the side panel in the browser - actions and knobs. I'm not aware of any third party RN addons. We can easily build a logger for actions in the onDeviceUI although knobs would be a bit harder. I'm curious to see how users use knobs in conjunction with Storybook RN. I don't think cross platform addons are achievable quite yet. I have yet to see a truly cross platform (react & react-native) set of UI components that doesn't require significant configuration and maintenance. I'm pretty neutral about this support for browser UI. I think this PR will solve most of the pain points I have in using Storybook RN as a developer #3278. I brought this up because it's probably the buggiest stable framework we support. RN is least tested piece of code we have in this repo and we don't have any tests for web UI + RN UI working together in conjunction. The only thing we test for is if the CLI works and is able to start, and if snapshots can be taken in a vanilla app. |
Well to make addons work we could additionally add renders for RN part. But that would mean that now we have to update two renders instead of one. One ugly solution that could theoretically allow us to still use same addons (react) would be to integrate browser in phone to render addons? Just an idea. |
Yeah, I think we can probably have addons render in a drawer in an RN webview type thing. That'll be a nice to have. Gonna close this since it doesn't seem like a good idea to deprecate the browser UI. |
To continue the discussion from this PR: #3278
I'd like to get some opinions on these removing the browser side of the UI
Pros:
@sb/react
Cons:
The text was updated successfully, but these errors were encountered: