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...
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
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
npm uninstall <package name> works. It removes the expo module from your node_modules
for more reference
With NPM
$ npm uninstall jest
Shorthand version
$ npm r jest
With Yarn
$ yarn remove jest