How I Upgraded Expo 41 -> 44
Upgrading Expo over more versions can be tricky. Lets see to my jurney, when i migrating from Expo version 41 to 44.
Expo upgrade
Console command expo upgrade
is good start, it will try upgrade all known libs to right version. Then you don’t have to handle which version of react, react-native and expo is compatible. Expo will do this boring work.
But then real fun will is just beginning…
Sentry update
OK, check of package.json
shows, that the Sentry's version is the latest. After some search I figure out that "plugins":["sentry-expo"]
is missing in app.json
. So will add it and lets continue.
Ahh, new error about Sentry. Now missing expo-updates
package. Again some searching and in Sentry documentation I find out that have to install some Expo's packages manually:
expo install expo-application expo-constants expo-device expo-updates @sentry/react-native
OK, I install them and Sentry is now OK.
But errors continues…
React-native-uuid
New problem now is some package buffer, which i never used in the project… WTF? …. to cut long story short: simple update react-native-uuid
lib helps.
Reanimated 2
Last but not least. Great, there is some hint :), so check babel.config.js
and really there is no plugin.
so i added plugin declaration:
plugins: ['react-native-reanimated/plugin']
But still don't works and same error is shown…. hmm :/
I feel a little frustrated.
So I trying google it and receiving expo start --clear
to the rescue.
Uff.. all error are gone and can release application again :D
Thanks for reading!