Skip to content

EnzoDLP/lib-react-native-storybook-v2

Repository files navigation

TODO: This section will contain the tutorial and information on how to install and use this library for:

  • The development of the storybook
  • The use of the library

How to import component into your project

npm i @enzodlp/bnpp-ere-design-system

And after this, you can already import your component :

import { UploadButton } from '@enzodlp/bnpp-ere-design-system';

<UploadButton
  title={'Title'}
  subTitle={'Subtitle'}
  onPressUpload={() => {
    console.log('onPressUpload');
  }}
  onStopLoading={() => {
    console.log('onStopLoading');
  }}
  onDeleteFile={() => {
    console.log('onDeleteFile');
  }}
/>

picture of storybook

RN Storybook (ondevice)

In this template you can now run yarn storybook to start ondevice storybook or yarn start to start your expo app. This works via env variables and expo constants.

# either
yarn storybook

# ios
yarn storybook:ios

# android
yarn storybook:android

If you add new stories on the native (ondevice version) you either need to have the watcher running or run the stories loader

To update the stories one time

yarn storybook-generate

Web

Start react native web storybook:

yarn storybook:web

build react native web storybook:

yarn build-storybook

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published