-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Allow implementing custom user-defined layouts #458
Comments
@sergeymorkovkin you could probably make something work with the current version. However I do have plans to extract the ui components to a package to make developing them easier which could have the side effect of making this easier. If you wanted to make something work currently you could turn off the ui and send events from your own UI
getting the storyId can be achieved in a few ways
Just providing this as an alternative but it would definitely be cool to make it more customizable. |
Hm, sounds interesting... Got a few questions, though:
1. Is it possible to retrieve the list of stories by sending an event?
2. Is it possible to render controls separately from the default layout?
I actually tried to "extract" the core of it, but that didn't work.
The number of dependencies is quite high, so I gave up.
|
|
@dannyhw Is there any update on this? Just rendering menu / actions / view separately could easily work, but everything is so tightly coupled in your transformer layout... Maybe, you could recommend some other approach we didn't even think of? |
@sergeymorkovkin what do you mean by transformer layout? |
@dannyhw By transformer layout I mean animated transition between different representations when view is becoming smaller freeing up space for either menu or actions. I tried to decouple different components from one another, but couldn't achieve any success in 2 days. |
@sergeymorkovkin well the plan is to refactor the ui into a separate package and that would probably enable extending the ui in custom ways however I just haven't gotten to that yet. What you're asking is definitely do-able but its just that the UI was not designed to be split up into parts so it would likely be very custom. Probably if I were to do it now I would set ondeviceUI as false then render the list of stories and the controls panel manually (Or the entire addons panel might be easier). |
@dannyhw Thanks for an advice - we'll look into this... |
Is your feature request related to a problem? Please describe.
Tried to integrate storybook in a custom layout, but couldn't.
Describe the solution you'd like
I want to be able to integrate partial components into my custom React Native layout.
For example,
Describe alternatives you've considered
Are you able to assist bring the feature to reality?
Yes, possibly.
The text was updated successfully, but these errors were encountered: