- Introduced dynamic chat settings for font size and message bubble radius, improving user customization. - Updated ChatScreen styles to support dynamic themes and responsive layouts. - Refactored bubble styles to utilize dynamic properties for better visual consistency. - Simplified chat settings management by integrating Zustand store for state management. This update significantly enhances the chat interface and user experience by allowing personalized settings and improved visual elements.
26 lines
1003 B
JavaScript
26 lines
1003 B
JavaScript
/** @type {import('expo/metro-config').MetroConfig} */
|
|
const { getDefaultConfig } = require('expo/metro-config');
|
|
|
|
const config = getDefaultConfig(__dirname);
|
|
|
|
// Add wasm asset support
|
|
config.resolver.assetExts.push('wasm');
|
|
|
|
// Fix for react-native-webrtc event-target-shim import warning
|
|
// The package doesn't properly export "./index" in its exports field
|
|
config.resolver.unstable_enablePackageExports = false;
|
|
|
|
// NOTE: enhanceMiddleware is marked as deprecated in Metro's types,
|
|
// but there's currently no official alternative for custom dev server headers.
|
|
// For production, configure COEP/COOP headers on your hosting platform.
|
|
// These headers are required for SharedArrayBuffer (used by expo-sqlite on web).
|
|
config.server.enhanceMiddleware = (middleware) => {
|
|
return (req, res, next) => {
|
|
res.setHeader('Cross-Origin-Embedder-Policy', 'credentialless');
|
|
res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');
|
|
middleware(req, res, next);
|
|
};
|
|
};
|
|
|
|
module.exports = config;
|