Makes it really easy to create react native components using typescript and publishing them to npm.
- Create new components in the
./library/
folder. - Simply use the components (like regular files) from the
App.tsx
example app and test using expo by writingnpm start
.
- Edit the file
library/package.json
with your details - Make sure to export your components from the
./library/index.ts
file. - When done run
npm run build-library
(Important note: requires a bash console, powershell or cmd will not work). This will convert the typescript files into.js
files and add.d.ts
files.
- When ready to publish to npm run:
npm run publish-library