Files
pwap/mobile/metro.config.cjs
T
pezkuwichain 24fe7fa0ac feat(mobile): Add all missing screen registrations and fixes
- Add screen registrations to AppNavigator (P2P, Forum, TaxZekat,
  Launchpad, President, Vote, Validators, Proposals, Identity,
  KurdMedia, Perwerde, B2B)
- Fix supabase.ts with hardcoded fallback credentials for production
- Fix Home tab header (headerShown: false)
- Add new screen components for mini apps
- Update DashboardScreen with proper navigation and alerts
2026-01-16 19:41:23 +03:00

58 lines
1.8 KiB
JavaScript

// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
const path = require('path');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
// ============================================
// WORKSPACE CONFIGURATION
// ============================================
const projectRoot = __dirname;
// Use default watchFolders (no custom configuration)
// ============================================
// CUSTOM MODULE RESOLUTION
// ============================================
// DISABLED: Custom resolver causes empty-module.js resolution issues
// Using npm packages directly instead
// ============================================
// FILE EXTENSIONS
// ============================================
// Extend default extensions instead of replacing them
config.resolver.sourceExts = [
...config.resolver.sourceExts,
'expo.ts',
'expo.tsx',
'expo.js',
'expo.jsx',
'wasm',
];
// SVG should be handled as source file for react-native-svg transformer
// Remove svg from assetExts if present, add to sourceExts
config.resolver.assetExts = config.resolver.assetExts.filter(ext => ext !== 'svg');
if (!config.resolver.sourceExts.includes('svg')) {
config.resolver.sourceExts.push('svg');
}
// ============================================
// NODE POLYFILLS
// ============================================
// Polyfills will be resolved from project's own node_modules
// ============================================
// PACKAGE EXPORTS RESOLUTION
// ============================================
// Disable strict package exports checking for packages like @noble/hashes
// that don't properly export all their submodules
config.resolver.unstable_enablePackageExports = false;
module.exports = config;