NMF-earth / nmf-app

Understand and reduce your carbon footprint 🌱 iOS & Android.
https://nmf.earth
GNU General Public License v3.0
508 stars 157 forks source link

Updating expo to 4.9.0 #385

Closed saurabhchatterjee23 closed 1 year ago

saurabhchatterjee23 commented 1 year ago

✅ I have read the contributing file

Summary

I have upgraded the expo version to 49.0 for this application

I followed the instructions in the following blog https://blog.expo.dev/expo-sdk-49-c6d398cdf740 Sections -

Steps

yarn add expo@^49.0.0
npx expo install --fix
npx expo-doctor@latest

Changelog

Before the upgrade, the build was showing these warnings

Some dependencies are incompatible with the installed expo version:
  react-native@0.71.8 - expected version: 0.71.14
  sentry-expo@6.1.0 - expected version: ~6.2.0
Your project may not work correctly until you install the correct versions of the packages.
Install individual packages by running npx expo install react-native@0.71.14 sentry-expo@~6.2.0\

After the upgrade

warning " > react-i18next@11.4.0" has unmet peer dependency "i18next@>= 19.0.0".
warning "react-native > @react-native/codegen@0.72.7" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen > jscodeshift@0.14.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning " > react-native-reanimated@3.3.0" has unmet peer dependency "@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0-0".
warning " > react-native-reanimated@3.3.0" has unmet peer dependency "@babel/plugin-proposal-optional-chaining@^7.0.0-0".
warning " > react-native-reanimated@3.3.0" has unmet peer dependency "@babel/plugin-transform-arrow-functions@^7.0.0-0".
warning " > react-native-reanimated@3.3.0" has unmet peer dependency "@babel/plugin-transform-shorthand-properties@^7.0.0-0".
warning " > react-native-reanimated@3.3.0" has unmet peer dependency "@babel/plugin-transform-template-literals@^7.0.0-0".
nmf-app % npx expo-doctor@latest
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK

Demo

PierreBresson commented 1 year ago

@saurabhchatterjee23 looks good, thanks for the PR :)