/react-native-storybook-monorepo

A simple example of using Storybook for React Native within a monorepo, coexisting with the app.

Primary LanguageTypeScript

Storybook for React Native in a monorepo

This repository contains a simple example of using Storybook for React Native within a monorepo, coexisting with the app.

This repository accompanies the Medium article "A cleaner approach for Storybook with React Native" that you can find here 👉🏼 https://medium.com/p/f9f5a59fdfa8

Requirements

  • Yarn is used as package manager:

    brew install yarn --ignore-dependencies

    Yarn Workspaces make it easy to develop complex software as a monorepo consisting of several independent packages.

Monorepo Structure

The application project is organized within a monorepo structure and consists of the following packages:

  • App Package: This is the mobile app itself and relies on other packages within the project.
  • Design Package: Contains UI components and host the Storybook app.