Skip to content

Commit

Permalink
Add support to upload photos from library
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Apr 14, 2024
1 parent dd1c245 commit 770aaee
Show file tree
Hide file tree
Showing 6 changed files with 230 additions and 137 deletions.
25 changes: 19 additions & 6 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ PODS:
- ExpoModulesCore
- EXConstants (0.0.1-canary-20240411-55a0085):
- ExpoModulesCore
- EXImageLoader (0.0.1-canary-20240411-55a0085):
- ExpoModulesCore
- React-Core
- EXNotifications (0.0.1-canary-20240411-55a0085):
- ExpoModulesCore
- Expo (51.0.0-canary-20240411-55a0085):
Expand All @@ -39,10 +42,14 @@ PODS:
- ExpoModulesCore
- ExpoCalendar (0.0.1-canary-20240411-55a0085):
- ExpoModulesCore
- ExpoDocumentPicker (0.0.1-canary-20240411-55a0085):
- ExpoModulesCore
- ExpoFileSystem (0.0.1-canary-20240411-55a0085):
- ExpoModulesCore
- ExpoHaptics (0.0.1-canary-20240411-55a0085):
- ExpoModulesCore
- ExpoImagePicker (0.0.1-canary-20240411-55a0085):
- ExpoModulesCore
- ExpoModulesCore (0.0.1-canary-20240411-55a0085):
- DoubleConversion
- glog
Expand Down Expand Up @@ -1010,8 +1017,6 @@ PODS:
- React-debug
- react-native-cookies (6.2.1):
- React-Core
- react-native-document-picker (9.1.1):
- React-Core
- react-native-pager-view (6.3.0):
- DoubleConversion
- glog
Expand Down Expand Up @@ -1396,13 +1401,16 @@ DEPENDENCIES:
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- EXApplication (from `../node_modules/expo-application/ios`)
- EXConstants (from `../node_modules/expo-constants/ios`)
- EXImageLoader (from `../node_modules/expo-image-loader/ios`)
- EXNotifications (from `../node_modules/expo-notifications/ios`)
- Expo (from `../node_modules/expo`)
- ExpoAsset (from `../node_modules/expo-asset/ios`)
- ExpoBackgroundFetch (from `../node_modules/expo-background-fetch/ios`)
- ExpoCalendar (from `../node_modules/expo-calendar/ios`)
- ExpoDocumentPicker (from `../node_modules/expo-document-picker/ios`)
- ExpoFileSystem (from `../node_modules/expo-file-system/ios`)
- ExpoHaptics (from `../node_modules/expo-haptics/ios`)
- ExpoImagePicker (from `../node_modules/expo-image-picker/ios`)
- ExpoModulesCore (from `../node_modules/expo-modules-core`)
- ExpoSecureStore (from `../node_modules/expo-secure-store/ios`)
- EXTaskManager (from `../node_modules/expo-task-manager/ios`)
Expand Down Expand Up @@ -1438,7 +1446,6 @@ DEPENDENCIES:
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
- "react-native-cookies (from `../node_modules/@react-native-cookies/cookies`)"
- react-native-document-picker (from `../node_modules/react-native-document-picker`)
- react-native-pager-view (from `../node_modules/react-native-pager-view`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
- react-native-webview (from `../node_modules/react-native-webview`)
Expand Down Expand Up @@ -1505,6 +1512,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/expo-application/ios"
EXConstants:
:path: "../node_modules/expo-constants/ios"
EXImageLoader:
:path: "../node_modules/expo-image-loader/ios"
EXNotifications:
:path: "../node_modules/expo-notifications/ios"
Expo:
Expand All @@ -1515,10 +1524,14 @@ EXTERNAL SOURCES:
:path: "../node_modules/expo-background-fetch/ios"
ExpoCalendar:
:path: "../node_modules/expo-calendar/ios"
ExpoDocumentPicker:
:path: "../node_modules/expo-document-picker/ios"
ExpoFileSystem:
:path: "../node_modules/expo-file-system/ios"
ExpoHaptics:
:path: "../node_modules/expo-haptics/ios"
ExpoImagePicker:
:path: "../node_modules/expo-image-picker/ios"
ExpoModulesCore:
:path: "../node_modules/expo-modules-core"
ExpoSecureStore:
Expand Down Expand Up @@ -1586,8 +1599,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon"
react-native-cookies:
:path: "../node_modules/@react-native-cookies/cookies"
react-native-document-picker:
:path: "../node_modules/react-native-document-picker"
react-native-pager-view:
:path: "../node_modules/react-native-pager-view"
react-native-safe-area-context:
Expand Down Expand Up @@ -1679,13 +1690,16 @@ SPEC CHECKSUMS:
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
EXApplication: be264d0f59035771e4a92765f8049fd008c4cca0
EXConstants: 204e9ff854ac870ba2ebfa9a1c9e55bec42dca05
EXImageLoader: 5e11dcfa9cf7e7152e1699c6702b2f8329d0906e
EXNotifications: 851d98032afedd39b9e35600598e3d5e3d8494f0
Expo: 036a2b61aba44780c90edbf1ac30b70c9afb5e30
ExpoAsset: ca3294ad6f4c4e96d1fb9dbcd01b68c9c614b062
ExpoBackgroundFetch: 2f5f5faf2f638406d0dbd2817d9f9f1e4bec4c10
ExpoCalendar: b630b35b1138f30e355728fc48e61aba332baed7
ExpoDocumentPicker: 8060e4e119aa3a237eac449cc7e1518cfa44252f
ExpoFileSystem: 09427765d094ec7a5fd4e01159fb758978352105
ExpoHaptics: 5a8ddfb2867d4d25e158f5bb0e31a2a0b8ba3a2a
ExpoImagePicker: 21d59e7ffbb8ba713931b7f987997907abaa2b83
ExpoModulesCore: 0df4b4350cdb5402bf33a2f04f275fa9b704ab94
ExpoSecureStore: 7269b9b5531c824bb485f40c23f8431bc401f46d
EXTaskManager: c5b7006d02e8256abd4b17bb85a0027b232cef8e
Expand Down Expand Up @@ -1720,7 +1734,6 @@ SPEC CHECKSUMS:
React-logger: 55862754d59c1fc8370aaff01399fdd75758cc16
React-Mapbuffer: 604db834d9adf8848451a325f26ffa604cdfd306
react-native-cookies: f54fcded06bb0cda05c11d86788020b43528a26c
react-native-document-picker: 3599b238843369026201d2ef466df53f77ae0452
react-native-pager-view: c1e29e1a6105a02807392ba822ad322447a72f55
react-native-safe-area-context: 24b35df032fc74cc0f2c042fdb9e21c1c496bf85
react-native-webview: 684364aaf96cbfff9a7128ade10766ebb7d25c6f
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@
"expo": "51.0.0-canary-20240411-55a0085",
"expo-background-fetch": "0.0.1-canary-20240411-55a0085",
"expo-calendar": "0.0.1-canary-20240411-55a0085",
"expo-document-picker": "0.0.1-canary-20240411-55a0085",
"expo-file-system": "0.0.1-canary-20240411-55a0085",
"expo-haptics": "0.0.1-canary-20240411-55a0085",
"expo-image-picker": "0.0.1-canary-20240411-55a0085",
"expo-intent-launcher": "0.0.1-canary-20240411-55a0085",
"expo-notifications": "0.0.1-canary-20240411-55a0085",
"expo-secure-store": "0.0.1-canary-20240411-55a0085",
Expand All @@ -81,7 +83,6 @@
"react-native": "0.74.0-rc.8",
"react-native-code-push": "8.2.2",
"react-native-device-info": "10.13.1",
"react-native-document-picker": "9.1.1",
"react-native-draggable-flatlist": "4.0.1",
"react-native-fs": "2.20.0",
"react-native-gesture-handler": "2.16.0",
Expand Down
50 changes: 31 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/assets/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,6 @@ export default {
restore: 'Restore',
reorder: 'Reorder',
dragToReorder: 'Long press and drag to reorder',
documents: 'Files',
photos: 'Photos',
};
2 changes: 2 additions & 0 deletions src/assets/translations/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ const zh: typeof en = {
restore: '恢复',
reorder: '排序',
dragToReorder: '长按并拖动以排序',
documents: '文件',
photos: '照片',
};

export default zh;
Loading

0 comments on commit 770aaee

Please sign in to comment.