Skip to content

Commit

Permalink
Merge pull request #7338 from kidroca/kidroca/update-rn-document-picker
Browse files Browse the repository at this point in the history
Update React Native document picker to v8
  • Loading branch information
mountiny authored Jan 20, 2022
2 parents 669c0d9 + 145c4ac commit 520db47
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ PODS:
- react-native-config/App (= 1.4.5)
- react-native-config/App (1.4.5):
- React-Core
- react-native-document-picker (7.1.1):
- react-native-document-picker (8.0.0):
- React-Core
- react-native-flipper (0.117.0):
- React-Core
Expand Down Expand Up @@ -926,7 +926,7 @@ SPEC CHECKSUMS:
React-jsinspector: d0374f7509d407d2264168b6d0fad0b54e300b85
React-logger: 933f80c97c633ee8965d609876848148e3fef438
react-native-config: 6502b1879f97ed5ac570a029961fc35ea606cd14
react-native-document-picker: 0e3602a4064da040321bafad6848d8b0edcb1d55
react-native-document-picker: 429972f7ece4463aa5bcdd789622b3a674a3c5d1
react-native-flipper: 169e8ba429b73ad637ce007337ce4b415e783799
react-native-image-picker: 4089335b89b625d4e34d53fb249c48a7a791b3ea
react-native-netinfo: 3a61a486f2329f5884753fd5bab21450a535d97c
Expand Down
6 changes: 3 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 @@ -84,7 +84,7 @@
"react-native": "0.66.4",
"react-native-collapsible": "^1.6.0",
"react-native-config": "^1.4.5",
"react-native-document-picker": "^7.1.1",
"react-native-document-picker": "^8.0.0",
"react-native-fast-image": "^8.5.11",
"react-native-gesture-handler": "1.9.0",
"react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#3bbd17d63e6c38d38d857b50f6037c1c0376ff06",
Expand Down
7 changes: 0 additions & 7 deletions src/components/AttachmentPicker/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ function getDataForUpload(fileData) {
size: fileData.fileSize || fileData.size,
};

// When the URI is lacking uri scheme - file upload would fail
// Prefixing the uri with `file://` fixes attachment upload on Android
const hasScheme = /^.+:\/\//.test(fileResult.uri);
if (!hasScheme) {
fileResult.uri = `file://${fileResult.uri}`;
}

if (fileResult.size) {
return Promise.resolve(fileResult);
}
Expand Down

0 comments on commit 520db47

Please sign in to comment.