Fix: Resolve app loading timeout issues

- Update incompatible dependencies to match Expo SDK 54
- Add metro.config.js with increased timeout
- Temporarily disable react-native-chart-kit to fix loading
- Add placeholder for charts in AnalysisScreen
- Add TROUBLESHOOTING.md guide
- Fix TypeScript error in helpers.ts formatDate function
This commit is contained in:
2025-10-23 15:08:17 +02:00
parent 2f61e41d0d
commit fc1274b59d
5 changed files with 233 additions and 52 deletions

17
metro.config.js Normal file
View File

@@ -0,0 +1,17 @@
const { getDefaultConfig } = require('expo/metro-config');
const config = getDefaultConfig(__dirname);
// Augmenter le timeout pour les connexions lentes
config.server = {
...config.server,
enhanceMiddleware: (middleware) => {
return (req, res, next) => {
// Augmenter le timeout à 5 minutes
res.setTimeout(300000);
return middleware(req, res, next);
};
},
};
module.exports = config;