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

4

3 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

1

npm uninstall <package name> works. It removes the expo module from your node_modules

for more reference

1

With NPM

$ npm uninstall jest 

Shorthand version

$ npm r jest 

With Yarn

$ yarn remove jest 
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy