Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6208

How To Publish My First React Native Component Library?

$
0
0

I was in the process of trying to find the right components and a full component library at that, but I was coming up short and built my own.

I noticed NPM libraries don't have any React Native, iOS, Android, app.json, and etc. files. Should I add these to my .gitignore and then they won't be published with my NPM package? I've built it on a React Native app, but from my understanding, so there should only be the following files listed below:

  • A src folder containing the components ("main" : "./src/index.tsx" is in the package.json file)
  • README.md
  • package.json
  • tsconfig.json (I used TypeScript, so is this file necessary?)

As of right now, my react-native-ultimate-modal-picker package is 636 MB and 19389 total files. Again, this is my first time publishing a package, so I just need some clarification.

I've used npm publish to do the initial publish and will do another publish once I trim everything down correctly.


Viewing all articles
Browse latest Browse all 6208

Trending Articles