Skip to content

make storybook component (optionally) a wrapper, add a event system to make storybook visible, add initial state support#844

Draft
ndelangen wants to merge 11 commits intonextfrom
norbert/storybookUI-as-wrapper
Draft

make storybook component (optionally) a wrapper, add a event system to make storybook visible, add initial state support#844
ndelangen wants to merge 11 commits intonextfrom
norbert/storybookUI-as-wrapper

Conversation

@ndelangen
Copy link
Member

@ndelangen ndelangen commented Feb 12, 2026

What I did

The idea is to give storybook self-control over if it should be shown or not.

This can be achieved by changing how the StorybookApp behaves: making it a wrapper component.

When the component receives no children, it will auto render, assuming the old behavior, making this change bac kwards-compatible.
When the component receives children, it will render only it's children by default, until a STORYBOOK_OPEN event is triggered on the channel.

The proposal is for all Storybook for ReactNative to move their usage of the StorybookApp to be a wrapper component.

How to test

Please explain how to test your changes and consider the following questions

  • Does this need a new example in examples/expo-example?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

…o make storybook visible, add initial state support
@ndelangen ndelangen requested a review from dannyhw as a code owner February 12, 2026 11:00
@ndelangen ndelangen marked this pull request as draft February 12, 2026 11:01
@changeset-bot
Copy link

changeset-bot bot commented Feb 15, 2026

⚠️ No Changeset found

Latest commit: 30a93fc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants