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 ?
When you create a new React project, all the project files are stored inside a project directory. To delete React app, just simply delete this directory. If you get any errors during this process, try to use the terminal instead of file explorer.
npm uninstall --save package_name
or npm uninstall --save-dev package_name
rnpm unlink package_name
then follow step 1note rnpm as is deprecated
I followed the following steps:--
react-native unlink <lib name>
-- this command has done the unlinking of the library from both platforms.
react-native uninstall <lib name>
-- this has uninstalled the library from the node modules and its dependencies
Manually removed the library name from package.json
-- somehow the --save command was not working for me to remove the library declaration from package.json.
After this I have manually deleted the empty react-native library from the node_modules folder
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With