react-nativenpmexpo

How do I update npm packages in Expo


In my regular React Native projects, I run npm update {package-name} regularly to make sure my libraries are up-to-date. For example, I use a third party user authentication package and want to make sure that I use the latest stable version.

What is the Expo equivalent of npm update?

I understand using expo install {package-name} has an advantage over npm i {package-name} in that it makes sure the installed version of the package will be compatible with Expo SDK the app is using. That's why I'm reluctant to run npm update {package-name} and want to put Expo in the equation.

How do I update my npm packages in my Expo app?


Solution

  • expo only updates the third packages with the core update of expo sdk, so you have to wait to ensure the compatibily.