Fixed the following warning in PeriodicityModalScreen.tsx
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
I was able to run the app on my iOS and Android devices after the upgrade
I tested the app's navigation for PeriodicityModalScreen on a mobile device
The progress chart on the Carbon budget screen broke after the upgrade, I updated react-native-progress version to fix the issue
✅ 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
Changelog
Constants.manifest
as it was deprecated in the expo 49, updatedApp.tsx
,BarCodeScanScreen.tsx
andSettingScreen.tsx
app.config.js
PeriodicityModalScreen.tsx
Before the upgrade, the build was showing these warnings
After the upgrade
Demo
react-native-progress
version to fix the issue