Browse Source

android icon

Viktoriia 8 months ago
parent
commit
7b647944a6
3 changed files with 11 additions and 9 deletions
  1. 11 8
      app.config.ts
  2. BIN
      assets/notification-android-icon.png
  3. 0 1
      package.json

+ 11 - 8
app.config.ts

@@ -3,6 +3,7 @@ import path from 'path';
 import dotenv from 'dotenv';
 import dotenv from 'dotenv';
 
 
 import type { ConfigContext, ExpoConfig } from 'expo/config';
 import type { ConfigContext, ExpoConfig } from 'expo/config';
+import { Platform } from 'react-native';
 
 
 const env = process.env;
 const env = process.env;
 
 
@@ -48,9 +49,16 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
     resizeMode: 'cover',
     resizeMode: 'cover',
     backgroundColor: '#ffffff'
     backgroundColor: '#ffffff'
   },
   },
-  notification: {
-    icon: './assets/notification-icon.png'
-  },
+  notification: Platform.select({
+    ios: {
+      icon: './assets/notification-icon.png',
+      color: '#FFFFFF'
+    },
+    android: {
+      icon: './assets/notification-android-icon.png',
+      color: '#FFFFFF'
+    }
+  }),
   updates: {
   updates: {
     url: 'https://u.expo.dev/c31c6828-3c32-4c7a-aabc-f9b8336b3b66'
     url: 'https://u.expo.dev/c31c6828-3c32-4c7a-aabc-f9b8336b3b66'
   },
   },
@@ -72,9 +80,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
         'Enable NomadMania.com to access your photo library to upload your profile picture. Any violence, excess of nudity, stolen picture, or scam is forbidden',
         'Enable NomadMania.com to access your photo library to upload your profile picture. Any violence, excess of nudity, stolen picture, or scam is forbidden',
       NSPushNotificationsDescription:
       NSPushNotificationsDescription:
         'This will allow NomadMania.com to send you notifications. Also you can disable it in app settings',
         'This will allow NomadMania.com to send you notifications. Also you can disable it in app settings',
-
-      NSMicrophoneUsageDescription:
-        'Nomadmania app needs access to the microphone to record audio.',
       NSDocumentsFolderUsageDescription:
       NSDocumentsFolderUsageDescription:
         'Nomadmania app needs access to the documents folder to select files.',
         'Nomadmania app needs access to the documents folder to select files.',
       NSCameraUsageDescription: 'Nomadmania app needs access to the camera to record video.',
       NSCameraUsageDescription: 'Nomadmania app needs access to the camera to record video.',
@@ -108,7 +113,6 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
       'USER_FACING_NOTIFICATIONS',
       'USER_FACING_NOTIFICATIONS',
       'INTERNET',
       'INTERNET',
       'CAMERA',
       'CAMERA',
-      'RECORD_AUDIO',
       'MODIFY_AUDIO_SETTINGS'
       'MODIFY_AUDIO_SETTINGS'
     ],
     ],
     versionCode: 74 // next version submitted to Google Play needs to be higher than that 2.0.21
     versionCode: 74 // next version submitted to Google Play needs to be higher than that 2.0.21
@@ -156,6 +160,5 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
         microphonePermission: 'Allow Nomadmania to access your microphone.'
         microphonePermission: 'Allow Nomadmania to access your microphone.'
       }
       }
     ],
     ],
-    ['@react-native-firebase/messaging']
   ]
   ]
 });
 });

BIN
assets/notification-android-icon.png


+ 0 - 1
package.json

@@ -16,7 +16,6 @@
     "@react-native-clipboard/clipboard": "^1.14.2",
     "@react-native-clipboard/clipboard": "^1.14.2",
     "@react-native-community/datetimepicker": "8.0.1",
     "@react-native-community/datetimepicker": "8.0.1",
     "@react-native-community/netinfo": "11.3.1",
     "@react-native-community/netinfo": "11.3.1",
-    "@react-native-firebase/messaging": "^21.2.0",
     "@react-navigation/bottom-tabs": "^6.5.11",
     "@react-navigation/bottom-tabs": "^6.5.11",
     "@react-navigation/drawer": "^6.6.15",
     "@react-navigation/drawer": "^6.6.15",
     "@react-navigation/material-top-tabs": "^6.6.5",
     "@react-navigation/material-top-tabs": "^6.6.5",