React Native Storybook Boilerplate

screenshot of React Native Storybook Boilerplate
react
react-native
styled-components

Compelling boilerplate setup for starting development of a React Native UI library. React-Native+React-Native-Web+Storybook=

Overview

The react-native-storybook-boilerplate is a development setup designed to kickstart the development of a UI library for React Native. It allows developers to transpile React Native components through the react-native-web project, making it easier to display them on the web. The boilerplate includes two different setups of Storybook: one for React Native and one for React. This allows for parallel development and testing of components for both platforms.

Features

  • React Native + Storybook: Set up React Native and Storybook using the npx react-native init command and installing the necessary dependencies.
  • React + Storybook: Set up React from scratch, configure Babel and Webpack, and alias React Native with react-native-web.
  • Installation of additional packages: Install packages such as styled-components and configure them to work for both React Native and React.
  • Custom webpack configuration for Storybook: Configure the custom webpack in the .storybook/main.js file to use the alias configuration from the webpack.config.js file.
  • Support for writing stories for React Native: Add an alias where @storybook/react-native resolves to @storybook/react
react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

react-native
React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.

styled-components
Styled Components

Styled Components is a popular library for styling React components using CSS syntax. It allows you to write CSS in your JavaScript code, making it easier to create dynamic styles that are specific to each component.

ui-kit
UI Kits & Components

A UI kit provides developers with a set of reusable components that can be easily integrated into a website or application. These components are pre-designed with consistent styling and functionality, allowing developers to save time and effort in the design and development process. UI kits can be either custom-built or third-party, and often include components for buttons, forms, typography, icons, and more.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

Storybook

Storybook is a tool for developing and testing UI components in isolation. It provides a sandbox environment where you can experiment with different props and states to see how your component responds.

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.