feat: integrate mobile template with backend, add /mobile path routing and Todo dashboard

This commit is contained in:
Plena Finance Dev
2026-07-09 11:36:45 +05:30
parent 420b803cc0
commit 1a5028b8f3
20 changed files with 1021 additions and 0 deletions

30
mobile/metro.config.ts Normal file
View File

@@ -0,0 +1,30 @@
const { getDefaultConfig } = require('expo/metro-config');
const { FileStore } = require('metro-cache');
const path = require('path');
const config = getDefaultConfig(__dirname);
// Add resolver configuration for Node.js polyfills
config.resolver.alias = {
...config.resolver.alias,
crypto: 'react-native-get-random-values',
stream: 'readable-stream',
buffer: 'buffer',
};
config.resolver.unstable_conditionNames = ['require', 'react-native'];
// Add node_modules to resolver platforms
config.resolver.platforms = ['native', 'android', 'ios', 'web'];
// Configure metro to handle the polyfills
config.resolver.resolverMainFields = ['react-native', 'browser', 'main'];
config.cacheStores = [
new FileStore({
root: path.join(__dirname, '.metro-cache'),
}),
];
module.exports = config;