Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/rn-storybook-auto-screenshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"author": "Screenshotbot",
"license": "Apache-2.0",
"peerDependencies": {
"@storybook/react-native": "*",
"@storybook/react-native": ">=10.0.0 <11.0.0",
"react": "*",
"react-native": "*"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/rn-storybook-auto-screenshots/src/StoryRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ export function StoryRenderer({ storyName = 'MyFeature/Initial' }: StoryRenderer
);
}

// NOTE: _storyIndex, _idToPrepared, _preview, and createPreparedStoryMapping are
// internal APIs on the View class (underscore-prefixed). @storybook/react-native does
// not expose a public API for programmatic story rendering — getStorybookUI() is the
// only public rendering path. We rely on these internals because there is no alternative.
// Verified against @storybook/react-native ^10.0.0. If Storybook exposes a public API
// in a future version, we should migrate to it.

/**
* Get all available story IDs from Storybook's registry.
*/
Expand Down
Loading