Remove a Library from React-Native

Added in a new library and your App won’t build ?

Assuming you’ve just added in a new lib¬†with npm or yarn and run react-native link :

You rue the day and this lib has screwed up your App; I could mention a few but some of them [Maps…ummm] really do mess up your build, so you want to remove this module.

Remove the code from node_modules with npm uninstall....

Re-run react-native link

But the damn lib links are still ALL there !

Alas, you must manually remove any sight of these of from:




Then you can use

npm run bundle-android

npm run build

and your APP will rebuild without this unwanted library.


Leave a reply:

Your email address will not be published.

Site Footer