@umituz/react-native-ai-generation-content 1.17.158 → 1.17.159

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-ai-generation-content",
3
- "version": "1.17.158",
3
+ "version": "1.17.159",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -39,6 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@umituz/react-native-design-system": "latest",
42
+ "@umituz/react-native-filesystem": "latest",
42
43
  "@umituz/react-native-firebase": "latest",
43
44
  "@umituz/react-native-image": "latest",
44
45
  "@umituz/react-native-offline": "latest",
@@ -69,6 +70,7 @@
69
70
  "@typescript-eslint/eslint-plugin": "^8.0.0",
70
71
  "@typescript-eslint/parser": "^8.0.0",
71
72
  "@umituz/react-native-design-system": "latest",
73
+ "@umituz/react-native-filesystem": "latest",
72
74
  "@umituz/react-native-firebase": "latest",
73
75
  "@umituz/react-native-haptics": "latest",
74
76
  "@umituz/react-native-image": "latest",
@@ -3,7 +3,7 @@
3
3
  * Uses ONLY configured app services - no alternatives
4
4
  */
5
5
 
6
- import * as FileSystem from "expo-file-system";
6
+ import { readFileAsBase64 } from "@umituz/react-native-filesystem";
7
7
  import { getAuthService, getCreditService, getPaywallService, isAppServicesConfigured } from "../config/app-services.config";
8
8
 
9
9
  declare const __DEV__: boolean;
@@ -27,9 +27,7 @@ export async function prepareImage(uri: string): Promise<string> {
27
27
  }
28
28
 
29
29
  try {
30
- const base64 = await FileSystem.readAsStringAsync(uri, {
31
- encoding: "base64",
32
- });
30
+ const base64 = await readFileAsBase64(uri);
33
31
 
34
32
  if (typeof __DEV__ !== "undefined" && __DEV__) {
35
33
  console.log("[prepareImage] Base64 length:", base64?.length || 0);