Toolverse
All skills

setup-react-native-storybook

by storybookjs

Set up Storybook for React Native in Expo, React Native CLI, or Re.Pack projects. Use when adding Storybook to a project, configuring metro.config.js with withStorybook, creating .rnstorybook configuration files, setting up Storybook routes in Expo Router, configuring

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Mobile

About this skill

Set up Storybook for React Native in Expo, React Native CLI, or Re.Pack projects. Use when adding Storybook to a project, configuring metro.config.js with withStorybook, creating .rnstorybook configuration files, setting up Storybook routes in Expo Router, configuring getStorybookUI, or adding the StorybookPlugin to a Re.Pack rspack/webpack config. Covers Expo, Expo Router, plain React Native CLI, and Re.Pack setups.

How to use

  1. Zidentyfikuj typ swojego projektu: sprawdź czy używasz Expo z Expo Router (plik _layout.tsx w katalogu app/), Expo bez routera, React Native CLI, czy Re.Pack (obecność rspack.config lub webpack.config).

  2. Sprawdź menedżer pakietów projektu — poszukaj pliku yarn.lock, pnpm-lock.yaml lub bun.lockb i używaj odpowiedniej komendy (yarn, pnpm lub bun) zamiast npm we wszystkich instrukcjach.

  3. Uruchom inicjalizację Storybook poleceniem <pmu003e create storybook z odpowiednimi flagami dla Twojego typu projektu (tylko npm wymaga -- przed flagami, nie używaj npx ani bunx).

  4. Dla projektów Expo zainstaluj zależności komendą npx expo install (lub bunx expo install itp.), aby Expo mogło rozwiązać kompatybilne wersje pakietów.

  5. Skonfiguruj metro.config.js z withStorybook i utwórz pliki .rnstorybook zgodnie z instrukcjami dla Twojego typu projektu (Expo Router wymaga ustawienia tras, Re.Pack wymaga dodania StorybookPlugin do konfiguracji).

  6. Uruchom Storybook komendą <pmu003e storybook (z użyciem menedżera pakietów z kroku 2) i sprawdź, czy komponenty ładują się prawidłowo.

Related skills

senior-architect

by alirezarezvani

Comprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin, Flutter, Postgres, GraphQL, Go, Python. Includes architecture diagram generation, system design patterns, tech stack

Mobile
184296

react-native-design

by wshobson

Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.

Mobile
1964

automating-mobile-app-testing

by jeremylongshore

This skill enables automated testing of mobile applications on iOS and Android platforms using frameworks like Appium, Detox, XCUITest, and Espresso. It generates end-to-end tests, sets up page object models, and handles platform-specific elements. Use this skill when the user

Mobile
17142

app-store-optimization

by davila7

Complete App Store Optimization (ASO) toolkit for researching, optimizing, and tracking mobile app performance on Apple App Store and Google Play Store

Mobile
1153

build-iphone-apps

by glittercowboy

Build professional native iPhone apps in Swift with SwiftUI and UIKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode. Targets iOS 26 with iOS 18 compatibility.

Mobile
1182

build-macos-apps

by glittercowboy

Build professional native macOS apps in Swift with SwiftUI and AppKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode.

Mobile
31136