Skip to content

Commit

Permalink
Merge pull request #48344 from software-mansion-labs/@wolewicki/bump-…
Browse files Browse the repository at this point in the history
…document-picker

[NoQA] feat: bump document-picker to newest version and remove unnecessary p…
  • Loading branch information
mountiny authored Sep 2, 2024
2 parents 9051e00 + ceba00e commit 7e0bf3d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 50 deletions.
1 change: 1 addition & 0 deletions __mocks__/react-native-document-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const reactNativeDocumentPickerMock: ReactNativeDocumentPickerMock = {
doc: 'com.microsoft.word.doc',
docx: 'org.openxmlformats.wordprocessingml.document',
images: 'public.image',
json: 'public.json',
pdf: 'com.adobe.pdf',
plainText: 'public.plain-text',
ppt: 'com.microsoft.powerpoint.ppt',
Expand Down
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ PODS:
- React-Codegen
- React-RCTFabric
- ReactCommon/turbomodule/core
- react-native-document-picker (9.1.1):
- react-native-document-picker (9.3.1):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -3180,7 +3180,7 @@ SPEC CHECKSUMS:
react-native-blob-util: 221c61c98ae507b758472ac4d2d489119d1a6c44
react-native-cameraroll: 478a0c1fcdd39f08f6ac272b7ed06e92b2c7c129
react-native-config: 5ce986133b07fc258828b20b9506de0e683efc1c
react-native-document-picker: 2789e41dc92aa3256455aa54639a42f4dc4ee824
react-native-document-picker: e9d83c149bdd72dc01cf8dcb8df0389c6bd5fddb
react-native-geolocation: b9bd12beaf0ebca61a01514517ca8455bd26fa06
react-native-image-picker: f8a13ff106bcc7eb00c71ce11fdc36aac2a44440
react-native-key-command: aae312752fcdfaa2240be9a015fc41ce54087546
Expand Down
7 changes: 4 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"react-native-config": "1.5.0",
"react-native-dev-menu": "^4.1.1",
"react-native-device-info": "10.3.1",
"react-native-document-picker": "^9.1.1",
"react-native-document-picker": "^9.3.1",
"react-native-draggable-flatlist": "^4.0.1",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "2.18.0",
Expand Down
43 changes: 0 additions & 43 deletions patches/react-native-document-picker+9.1.1.patch

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/AttachmentPicker/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const getImagePickerOptions = (type: string): CameraOptions => {
* @returns {Object}
*/

const getDocumentPickerOptions = (type: string): DocumentPickerOptions<'ios' | 'android'> => {
const getDocumentPickerOptions = (type: string): DocumentPickerOptions => {
if (type === CONST.ATTACHMENT_PICKER_TYPE.IMAGE) {
return {
type: [RNDocumentPicker.types.images],
Expand Down

0 comments on commit 7e0bf3d

Please sign in to comment.