app.config.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import 'dotenv/config';
  2. import type { ConfigContext, ExpoConfig } from 'expo/config';
  3. import { env } from 'process';
  4. export default ({ config }: ConfigContext): ExpoConfig => ({
  5. ...config,
  6. name: 'nomadmania-app',
  7. slug: 'nomadmania-app',
  8. version: '1.0.0',
  9. orientation: 'portrait',
  10. icon: './assets/icon.png',
  11. userInterfaceStyle: 'light',
  12. plugins: [
  13. [
  14. 'expo-image-picker',
  15. {
  16. photosPermission: 'The app accesses your photos to let you share them with your friends.',
  17. cameraPermission: 'The app accesses your photos to let you share them with your friends.'
  18. }
  19. ]
  20. ],
  21. extra: {
  22. API_HOST: env.API_HOST
  23. },
  24. splash: {
  25. image: './assets/splash.png',
  26. resizeMode: 'contain',
  27. backgroundColor: '#ffffff'
  28. },
  29. assetBundlePatterns: ['**/*'],
  30. ios: {
  31. supportsTablet: true
  32. },
  33. android: {
  34. adaptiveIcon: {
  35. foregroundImage: './assets/adaptive-icon.png',
  36. backgroundColor: '#ffffff'
  37. }
  38. },
  39. web: {
  40. favicon: './assets/favicon.png'
  41. }
  42. });