Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove unwanted expo modules

When creating an react native app with expo, expo installs many module that i don't need. Is there a way to remove these unwanted modules like barcode reader google sign in and google maps. thanks

like image 212
mcnk Avatar asked Aug 23 '19 21:08

mcnk


People also ask

How do I know what version of Expo I have?

You can check your Node version by running the Node -v command on your terminal. Expo offers a command-line interface called Expo CLI. It is used to test the app while it's being developed either in iOS or Android.

How do I delete Expo app?

You can eject expo running the command npm run eject on the console. Make sure you'll choose the option React Native: I'd like a regular React Native project and then rename your project accordingly. You'll see a few questions on the console about the ejecting task: How would you like to eject your app?


1 Answers

To remove a package from your node_modules directory, on the command line, use the uninstall command. Include the scope of the package is scoped.

Unscoped package

npm uninstall --save <package_name>

Scoped package

npm uninstall --save <@scope/package_name>

if need to know more about it then follow official Document here https://docs.npmjs.com/uninstalling-packages-and-dependencies#removing-a-local-package-from-the-packagejson-dependencies

like image 182
Akshay I Avatar answered Oct 22 '22 06:10

Akshay I