1.0.7 • Published 2 years ago
baller-rn-design-system v1.0.7
baller-rn-design-system
A ReactNative design system for our react native apps
Development
Installation
Clone the repo and run yarn install
Running the app
Run yarn storybook:ios or yarn storybook:android to start the storybook server and run the app on the simulator
Adding a new component
Add new component to design-system/components folder and add a story to ./stories folder'.
Export the component to index.js file.
Note: when adding new package for your component
- your components imports and depends on the package, add package to
peerDependenciesinpackage.json- otherwise, add package to
devDependenciesinpackage.json
Publishing the package
Run yarn build to bundle components. Then, run yarn publish to publish the package to npm.
Note: you'll need npm login credentials to publish the package. Contact @bo for the credentials. Run
yarn loginto login to npm