Prechádzať zdrojové kódy

feat: permissions for photo gallery | package.json new dependencies

Oleksandr Honcharov 1 rok pred
rodič
commit
3045acf796
2 zmenil súbory, kde vykonal 15 pridanie a 4 odobranie
  1. 9 0
      app.config.ts
  2. 6 4
      package.json

+ 9 - 0
app.config.ts

@@ -10,6 +10,15 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
   orientation: 'portrait',
   icon: './assets/icon.png',
   userInterfaceStyle: 'light',
+  plugins: [
+    [
+      'expo-image-picker',
+      {
+        photosPermission: 'The app accesses your photos to let you share them with your friends.',
+        cameraPermission: 'The app accesses your photos to let you share them with your friends.'
+      }
+    ]
+  ],
   extra: {
     API_HOST: env.API_HOST
   },

+ 6 - 4
package.json

@@ -10,6 +10,7 @@
   },
   "dependencies": {
     "@react-native-async-storage/async-storage": "1.18.2",
+    "@react-native-community/datetimepicker": "^7.6.2",
     "@react-navigation/bottom-tabs": "^6.5.11",
     "@react-navigation/native": "^6.1.9",
     "@react-navigation/native-stack": "^6.9.17",
@@ -18,21 +19,22 @@
     "axios": "^1.6.1",
     "dotenv": "^16.3.1",
     "expo": "~49.0.15",
+    "expo-checkbox": "~2.4.0",
+    "expo-image-picker": "~14.3.2",
     "expo-splash-screen": "~0.20.5",
     "expo-status-bar": "~1.6.0",
     "react": "18.2.0",
     "react-native": "0.72.6",
     "react-native-safe-area-context": "4.6.3",
     "react-native-screens": "~3.22.0",
-    "react-native-svg": "13.9.0",
-    "expo-checkbox": "~2.4.0"
+    "react-native-svg": "13.9.0"
   },
   "devDependencies": {
     "@babel/core": "^7.20.0",
     "@types/react": "~18.2.14",
     "prettier": "^3.1.0",
-    "typescript": "^5.1.3",
-    "react-native-svg-transformer": "^1.1.0"
+    "react-native-svg-transformer": "^1.1.0",
+    "typescript": "^5.1.3"
   },
   "private": true
 }