node_modules
directories are not cached and restored (eg: based on yarn.lock
or package-lock.json
), but if you commit them to your git repository then they will be uploaded to build servers.expo build
): it will produce smaller binaries by only including the dependencies you need, and you will be able to include custom native code.