Skip to content

Storybook 8 is not supported by React Native integration #530

@V3RON

Description

@V3RON

Storybook 8 is supported by Loki for the web platform, thanks to updates introduced in #507. However, the React Native integration has not yet been updated to align with the new APIs.

Identified Issues:

  • storybook.raw() must be replaced with await __STORYBOOK_PREVIEW.extract().
  • configureStorybookReactNative should be called after view.getStorybookUI.
  • DevSettings.setHotLoadingEnabled(false); triggers a reload of the application, causing the "Loading bundle from..." toast message to be captured and displayed in screenshots, should be replaced with HMRClient.disable() and HMRClient.enable()

I made the necessary changes locally and successfully ran Loki.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions