- We have a flag named main in package.json file which says to get files from lib/index.ts. When we publish it on github this library and re-install it in our projects it will take files from lib/index.ts.
- Create a new branch from dev_components.
- Create components on this new branch.
- Once done, merge this branch with development having ios, android, index.js, App.tsx files and folders.
- Checkout to dev_components if you are on development.
- Update version in package.json file and then create build by running npm run build. Once done, create a PR for it with master.
- Make sure git repo does not have ios, android, index.js, App.tsx files and folders.
- Once merged, push changes to remote.
- Move to affected repos and run npm i twic_mobile_components.
- App.tsx will act as a play ground. Create components in components folder. Import components in App.tsx file. Once you are done with your work, clean the code within
- npm run start and npm run ios will run the playground.