Using customised package from GitHub in React Native
Almost of react native developers are definitely using packages to enhance the experience of End User. Along with that we always try to solve problems with the help of existing package, due to which we don’t wanna code amount of code on our own.
Now sometimes it happens that you’re having a package completely but in some styling
or some props
or something we need to modify & use that package.
This works pretty cool when you’re an individual, but while working on team of developer’s definitely it’s the heaviest task to tell them to edit or modify some specific style
or specific props
or anything
.
Please go to line number 868 & update the value of width from 900 to 100%.
or
Please go to interface of props & update the onChange to optional.
I also won’t prefer to go with that, so now coming to the solution
- Upload your modified package to github.
- Now remember your github profile name & repository name.
- Customise the string as
github:<github user name>/<github repository name>
- Definitely while adding package you’re following steps as
yarn add github:rushabhgedam/fireChat
- Now the only thing remained is refresh your
node_modules
by deleting & reinstalling npm packages. (skip if everything works well) - Either use
yarn
or usenpm install
Verify your package.json in case if required.
Now you’re having modified package on your gihub repository & you’re installing a package that is modified by you.