-
-
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
Does nesting of stories work in React Native? #2833
Comments
I think it does. What is the version of Storybook do you use? Can you please share you config.js? |
@igor-dv Thanks for quick reply. I think I don't have any specific Here is my main file:
|
I was under impression that hierarchySeparator is set to import { setOptions } from '@storybook/addon-options';
...
setTimeout(
() =>
setOptions({
hierarchySeparator: /\//,
}),
100
); |
Sorry, I forgot to mention that I use version 3.3.10 Thanks for the hint. I will try it. I briefly looked at the components for stories tree and I don't see anything related to creating hierarchy tree in RN part (see StoryListView). For web UI there is quite complex logic for handling this (see StoriesPanel container and component). |
Ah 🤦♂️ , Sorry @janmarsicek , I've misunderstood your questions. Indeed, hierarchy is implemented only for web Storybook manager. Not for the RN view. |
@igor-dv Thanks for your support! Is there a plan to implement similar feature also for RN also in the future? |
I think there is already a similar feature request somewhere. Maybe @Gongreg knows more about this. |
Hey, @janmarsicek, @igor-dv. Right now as far as I know there no plans to implement it (correct me if I'm wrong) but it should be implemented in the future, since we want to maintain feature parity between different projects (react, angular, ...). So it makes sense to do it. |
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! |
Closing in favour of #3905 |
The new issue link shared by @Gongreg is: storybookjs/react-native#12 |
Hello everyone, just wondering if this feature https://storybook.js.org/basics/writing-stories/#nesting-stories works in React Native apps? The story is nested in web preview but in the app drawer the string is just rendered with hierarchy separator.
Please compare web version:
and RN drawer:
Thanks 🚀
The text was updated successfully, but these errors were encountered: