Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Djorkaeff Alexandre | 20ecbd25fb |
|
@ -2,7 +2,7 @@ package chat.rocket.reactnative.share;
|
||||||
|
|
||||||
import chat.rocket.reactnative.BuildConfig;
|
import chat.rocket.reactnative.BuildConfig;
|
||||||
|
|
||||||
import chat.rocket.SharePackage;
|
import chat.rocket.rnshareextension.SharePackage;
|
||||||
|
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ class ShareListView extends React.Component {
|
||||||
if (isAndroid) {
|
if (isAndroid) {
|
||||||
await this.askForPermission(data);
|
await this.askForPermission(data);
|
||||||
}
|
}
|
||||||
|
console.log(data);
|
||||||
const info = await Promise.all(data.filter(item => item.type === 'media').map(file => FileSystem.getInfoAsync(this.uriToPath(file.value), { size: true })));
|
const info = await Promise.all(data.filter(item => item.type === 'media').map(file => FileSystem.getInfoAsync(this.uriToPath(file.value), { size: true })));
|
||||||
const attachments = info.map(file => ({
|
const attachments = info.map(file => ({
|
||||||
filename: file.uri.substring(file.uri.lastIndexOf('/') + 1),
|
filename: file.uri.substring(file.uri.lastIndexOf('/') + 1),
|
||||||
|
@ -247,7 +248,7 @@ class ShareListView extends React.Component {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
uriToPath = uri => decodeURIComponent(isIOS ? uri.replace(/^file:\/\//, '') : uri);
|
uriToPath = uri => decodeURIComponent(isIOS ? uri.replace(/^file:\/\//, '') : `file://${ uri }`);
|
||||||
|
|
||||||
getRoomTitle = (item) => {
|
getRoomTitle = (item) => {
|
||||||
const { serverInfo } = this.state;
|
const { serverInfo } = this.state;
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
"redux-saga": "1.1.3",
|
"redux-saga": "1.1.3",
|
||||||
"remove-markdown": "^0.3.0",
|
"remove-markdown": "^0.3.0",
|
||||||
"reselect": "^4.0.0",
|
"reselect": "^4.0.0",
|
||||||
"rn-extensions-share": "^2.4.0",
|
"rn-extensions-share": "RocketChat/rn-extensions-share#android-allow-all-file-share",
|
||||||
"rn-fetch-blob": "0.12.0",
|
"rn-fetch-blob": "0.12.0",
|
||||||
"rn-root-view": "^1.0.3",
|
"rn-root-view": "^1.0.3",
|
||||||
"semver": "7.3.2",
|
"semver": "7.3.2",
|
||||||
|
|
|
@ -13683,10 +13683,11 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
|
||||||
hash-base "^3.0.0"
|
hash-base "^3.0.0"
|
||||||
inherits "^2.0.1"
|
inherits "^2.0.1"
|
||||||
|
|
||||||
rn-extensions-share@^2.4.0:
|
rn-extensions-share@RocketChat/rn-extensions-share#android-allow-all-file-share:
|
||||||
version "2.4.0"
|
version "2.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/rn-extensions-share/-/rn-extensions-share-2.4.0.tgz#a614f6bf6cdd3948fbd7e0f2519592d4bb5f551f"
|
resolved "https://codeload.github.com/RocketChat/rn-extensions-share/tar.gz/be23d7bab731f34d889d1fc58d6a1dcaf7bb8ba4"
|
||||||
integrity sha512-zX3HcOhib805fVHR7TMYfFXrVBJWYgcrLYNB89RxbKqmSjaqUyWlHYuF61SKOs/dXXeic91e/L8d1YJa6TdzGA==
|
dependencies:
|
||||||
|
react-native "^0.63.1"
|
||||||
|
|
||||||
rn-fetch-blob@0.12.0:
|
rn-fetch-blob@0.12.0:
|
||||||
version "0.12.0"
|
version "0.12.0"
|
||||||
|
|
Loading…
Reference in New Issue