-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
layout in preview.js doesn't work #288
Comments
@likern I think this parameter might not be supported, however it would be simple to add. Where did you get this from? Some documentation you can point to? |
@dannyhw This is from https://storybook.js.org/docs/react/configure/story-layout documentation. In general, as a user, I would expect all basic functionality to work the same as in original StoryBook. |
@likern firstly thanks for the feedback I definitely understand where your coming from and Ideally that would be the case. Unfortunately the react native project was stagnant for some time and a lot of things were added to the web version in that time. Also these things have to reimplemented for react native since the ui is different. Right now the focus is to get the overall features up to date and then hopefully the other things will happen over time. This Issue will be added to the backlog and if any one wants to implement it in the meantime all PR's are welcome. |
Hey guys! Would be nice to have this feature. |
@rdgomt thanks for the feedback, its on my list for sure. I would suggest for now a workaround is to use a global decorator that adds some styling such as flex and align center or just add some padding. |
I am interested in picking this up, but might need some guidance. Should we include this feature in the Is the plan to only support |
I would say that this isn't related to backgrounds, I would follow the implementation that the web uses probably. Fullscreen just means hiding all the UI, though I'm not sure if that's needed or not. |
I tried to play around a bit and attempted to modify the styles in this line based on the layout parameter. This seems to work fine without using the It seems that the web version does not wrap the story component with additional layers, but selecting the html element and modify it directly. Am I looking at the wrong place or misunderstood something? |
I have very simple
preview.js
configbut components are not centered.
Expected behavior
Components should be centered.
Screenshots
System:
Environment Info:
System:
OS: Linux 5.14 Fedora 34 (Workstation Edition) 34 (Workstation Edition)
CPU: (8) x64 Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Binaries:
Node: 16.10.0 - ~/.nvm/versions/node/v16.10.0/bin/node
Yarn: 1.19.0 - ~/.nvm/versions/node/v16.10.0/bin/yarn
npm: 7.24.0 - ~/.nvm/versions/node/v16.10.0/bin/npm
Browsers:
Chrome: 94.0.4606.81
Firefox: 93.0
npmPackages:
@storybook/react-native: ^6.0.1-alpha.6 => 6.0.1-alpha.6
The text was updated successfully, but these errors were encountered: