@umituz/react-native-design-system 4.25.25 → 4.25.27

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": "4.25.25",
3
+ "version": "4.25.27",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -75,9 +75,12 @@ export async function downloadFileWithProgress(
75
75
  }
76
76
 
77
77
  const totalBytes = parseInt(response.headers.get("content-length") || "0", 10);
78
- if (!(response as any).body) return { ...(await downloadFile(url, destUri)), fromCache: false };
78
+ const body = (response as unknown as { body?: { getReader(): ReadableStreamDefaultReader<Uint8Array> } }).body;
79
+ if (!body || typeof body.getReader !== "function") {
80
+ return { ...(await downloadFile(url, destUri)), fromCache: false };
81
+ }
79
82
 
80
- const reader = (response as any).body.getReader();
83
+ const reader = body.getReader();
81
84
  const chunks: Uint8Array[] = [];
82
85
  let received = 0;
83
86