You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using mattermost v2.19.2 but i faced problem when i try to install image using the app it download okay ,but when when i try to install document i got result with 0B .the @mattermost/react-native-network-client version is 1.7.2
The text was updated successfully, but these errors were encountered:
Saving images and videos using "@react-native-camera-roll/camera-roll" works great, but saving files is not working. Here’s the code from Mattermost React Native:
import RNUtils from '@mattermost/rnutils';
const saveFile = async (path: string) => {
if (mounted.current) {
if (Platform.OS === 'android') {
try {
/* this function not working =>*/ await RNUtils.saveFile(path);
} catch {
// do nothing in case the user decides not to save the file
}
setAction('none');
return;
}
updateLocalFilePath(serverUrl, item.id, path);
Share.open({
url: pathWithPrefix('file://', path),
saveToFiles: true,
}).catch(() => {
// do nothing
});
setAction('none');
}
};
i am using mattermost v2.19.2 but i faced problem when i try to install image using the app it download okay ,but when when i try to install document i got result with 0B .the @mattermost/react-native-network-client version is 1.7.2
The text was updated successfully, but these errors were encountered: