how to delete installed library form react native project

rajat44 picture rajat44 · Jul 27, 2016 · Viewed 170.2k times · Source

I have installed a third party library in my project but it is not working , so I want to delete that library from my project , How can I do that ?

Answer

Aakash Sigdel picture Aakash Sigdel · Jul 27, 2016
  1. If it is a library based only on javascript, than you can just run npm uninstall --save package_name or npm uninstall --save-dev package_name
  2. If you've installed a library with native content that requires linking, and you've linked it with npm then you can do: npm unlink package_name then follow step 1
  3. If you've installed a library with native content manually, then just undo all the steps you took to add the library in the first place. Then follow step 1.

note rnpm as is deprecated