1.0.15 • Published 3 years ago
pawtner-mobile-ui v1.0.15
Pawtner-mobile-ui
Pawtner UI component ui module on React native
Installing pawtner-mobile-ui
in your project
Install pawtner-mobile-ui
package
npm install pawtner-mobile-ui
or
yarn add pawtner-mobile-ui
How to develop this package?
- In root folder of this project, create a
tgz
file by running
npm run pack
or
yarn run pack
After this step, a file with name pawtner-mobile-ui-<version>.tgz
will be created locally in root folder
- Go to
example
folder and installing the newly createdtgz
file
yarn add <absolute-path-to-tgz-file>/pawtner-mobile-ui-<version>.tgz
- Use components from the package as normal react native components
import { Badge } from 'pawtner-ui-mobile'
Publishing this package
- Build this project
yarn run prepare
- Publish package to
npm.js
yarn publish
Enter username and password of npmjs
pawtner account. Please contact admin to get credential
Publishing storybook
- In root folder, run
yarn build-static-webapp
- Commit changes and push to github
- The storybook will be deployed to this site: https://pawtnerstorybook.netlify.app/