const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config'); const path = require('path'); /** * Metro configuration * https://facebook.github.io/metro/docs/configuration * * @type {import('metro-config').MetroConfig} */ const config = { watchFolders: [ path.resolve(__dirname, '..'), // Ensure Metro watches the lib folder ], resolver: { sourceExts: ['tsx', 'ts', 'jsx', 'js', 'json'], // Ensure TypeScript files are recognized assetExts: ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'ico', 'webp', 'svg', 'ort', 'onnx'], }, }; module.exports = mergeConfig(getDefaultConfig(__dirname), config);