Giter Club home page Giter Club logo

storybook-native's Introduction

Storybook Native

All Contributors

Storybook Native is an extension of the normal web storybook that uses appetize.io to render your mobile application in an emulator that can be interacted with from your browser. It allows you to use many of the features that are available in the web storybook, such as addons, controls, etc.

It also supports using Storybook as a local development environment to develop Android and iOS apps/components, without the need for using appetize.io.

Installation

Before using this, ensure that you have installed NodeJS

If you want to use this module to render an emulator as a React component, follow the instructions here. This is recommended if you are already familiar with React and Storybook, or if you want to use features such as addons and controls.

If you want to use this module as a build tool that generates stories from metadata, follow the instructions here. This package supports limited variations of controls generation. This is recommended if you do not want to write any React code, and you will only have to write some basic JavaScript code. If you use this package, you will not have to install any extra Storybook dependencies, as they will already be included.

Configuring your mobile application

Before using this module, your mobile application must be set up to support switching between stories. There are detailed instructions on this here

Uploading your mobile application

After you have modified your application to support launch parameters or query parameters, you must upload your application to appetize.io. After the upload, you will receive a public key that can be used with Storybook Native to view and interact with your application directly from Storybook.

Setting up Storybook

Once your application is uploaded to appetize.io, you can begin setting up Storybook Native. The details for this can be found here

Examples

Examples of how to use this module as both a build tool and as a component library can be found in the examples folder. The app folder inside each example contains the source code of the application the example is for.

More example static storybooks can be found here

Local app development

Details on how to test changes that you make to your mobile application to support features such as controls can be found here

Migrating from version 1 to version 2

A full migration guide for breaking changes can be found here

Development in this repo

  • Clone this repo
  • Run yarn to install dependencies
  • yarn build && cd examples/flutter && yarn start
  • In a new tab, run yarn build whenever changes are made to any of the packages inside of the packages/ folder

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Michael Shilman

๐Ÿ“–

Adil Malik

๐Ÿ’ป ๐Ÿ“– ๐Ÿ’ก

Raj Vasikarla

๐Ÿ“– ๐Ÿ’ป

imgbot[bot]

๐Ÿ’ป

brocollie08

๐Ÿ“– ๐Ÿ’ป

Harris Borawski

๐Ÿ’ป

Josh Halvorson

๐Ÿ’ป

daisyduong-acc

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

storybook-native's People

Contributors

amalik2 avatar sumwatshade avatar hborawski avatar ahna92 avatar shilman avatar brocollie08 avatar joshhalvorson avatar daisyduong-acc avatar imgbot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.