@umituz/react-native-design-system 2.3.35 → 2.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-design-system",
3
- "version": "2.3.35",
3
+ "version": "2.3.37",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -56,6 +56,7 @@
56
56
  "@react-navigation/bottom-tabs": ">=6.0.0",
57
57
  "@react-navigation/native": ">=6.0.0",
58
58
  "@react-navigation/stack": ">=6.0.0",
59
+ "@umituz/react-native-filesystem": "*",
59
60
  "@umituz/react-native-haptics": "*",
60
61
  "@umituz/react-native-localization": "*",
61
62
  "@umituz/react-native-uuid": "*",
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  import * as Sharing from 'expo-sharing';
12
- import * as FileSystem from 'expo-file-system/build/legacy';
12
+ import { FileSystemService } from '@umituz/react-native-filesystem';
13
13
  import type { ShareOptions, ShareResult } from '../../domain/entities/Share';
14
14
  import { SharingUtils } from '../../domain/entities/Share';
15
15
 
@@ -64,13 +64,13 @@ export class SharingService {
64
64
  // Ensure we have an extension if possible, or default to bin/jpg?
65
65
  // Better to rely on what we have, or let the caller specify mimeType to infer extension?
66
66
  // For now, nice and simple:
67
- const localUri = `${FileSystem.cacheDirectory}${filename}`;
68
- const { uri: downloadedUri, status } = await FileSystem.downloadAsync(uri, localUri);
67
+ const localUri = FileSystemService.generateFilePath(filename);
68
+ const result = await FileSystemService.downloadFile(uri, localUri);
69
69
 
70
- if (status !== 200) {
71
- return { success: false, error: `Failed to download file: ${status}` };
70
+ if (!result.success) {
71
+ return { success: false, error: result.error || 'Failed to download file' };
72
72
  }
73
- shareUri = downloadedUri;
73
+ shareUri = result.uri!;
74
74
  } catch (downloadError) {
75
75
  return {
76
76
  success: false,