-
-
Notifications
You must be signed in to change notification settings - Fork 176
Open
Description
In Storybook 9, We are re-exporting types from the renderers in the frameworks.
So in .rnstorybook/preview.tsx
:
import type { Preview } from '@storybook/react';
Becomes:
import type { Preview } from '@storybook/react-native';
In addition to re-exporting the types, we should also make sure that auto-migration correctly transforms Storybook 8 projects on upgrade.
Similar things need to happen in all the story files:
// button.stories.tsx
import type { Meta, StoryObj } from "@storybook/react";
This is somewhat problematic in React Native, where stories can be shared between React Native and React Native Web. As a workaround, we can probably use the renderer types to start with. But long-term, we should figure out a better solution.
Metadata
Metadata
Assignees
Labels
No labels