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:
17
metro.config.js
Normal file
17
metro.config.js
Normal 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;
|
||||
Reference in New Issue
Block a user