Describe the bug
React Native Storybook does not honor parameters[paramKey].disable, the standard Storybook convention for hiding an addon panel per story. Every registered panel renders for every story regardless of the story's parameters.
On web Storybook the same parameter hides the matching tab.
To Reproduce
-
In any React Native Storybook project (10.3.x), add a story that disables a panel via its paramKey:
export const NoControls: Story = {
parameters: { controls: { disable: true } },
args: { label: 'Hi' },
};
-
Run Storybook on device or simulator.
-
Open the addons panel for NoControls.
-
The Controls tab is still rendered (expected: hidden).
Same is true for any panel addon that declares a paramKey (e.g. notes, actions, custom addons). Disabling every panel for a story does not hide
the addons UI either — the mobile bottom-bar toggle and the desktop addons column remain visible with empty tabs.
Expected behavior
Match web Storybook:
- A panel whose
paramKey matches story.parameters[paramKey].disable === true is filtered out of the tab list.
- If every panel is filtered out, the addons UI is not rendered (mobile toggle button + desktop sidebar both hidden).
- If the currently-selected tab gets filtered out, selection falls back to the first remaining panel instead of showing an empty state.
System:
storybook: ^10.3.5
@storybook/react-native: ^10.3.1
react-native: 0.81.6
react: 19.1.4
platform: iOS + Android (Expo SDK 54)
Happy to open a PR if needed.
Thanks!
Describe the bug
React Native Storybook does not honor
parameters[paramKey].disable, the standard Storybook convention for hiding an addon panel per story. Every registered panel renders for every story regardless of the story's parameters.On web Storybook the same parameter hides the matching tab.
To Reproduce
In any React Native Storybook project (10.3.x), add a story that disables a panel via its
paramKey:Run Storybook on device or simulator.
Open the addons panel for
NoControls.The Controls tab is still rendered (expected: hidden).
Same is true for any panel addon that declares a
paramKey(e.g.notes,actions, custom addons). Disabling every panel for a story does not hidethe addons UI either — the mobile bottom-bar toggle and the desktop addons column remain visible with empty tabs.
Expected behavior
Match web Storybook:
paramKeymatchesstory.parameters[paramKey].disable === trueis filtered out of the tab list.System:
Happy to open a PR if needed.
Thanks!