@umituz/react-native-ai-generation-content 1.17.155 → 1.17.157

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.155",
3
+ "version": "1.17.157",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -3,7 +3,7 @@
3
3
  * Uses ONLY configured app services - no alternatives
4
4
  */
5
5
 
6
- import { ImageTransformService } from "@umituz/react-native-image";
6
+ import * as FileSystem from "expo-file-system";
7
7
  import { getAuthService, getCreditService, getPaywallService, isAppServicesConfigured } from "../config/app-services.config";
8
8
 
9
9
  declare const __DEV__: boolean;
@@ -18,16 +18,15 @@ export interface FeatureUtilsConfig {
18
18
  }
19
19
 
20
20
  export async function prepareImage(uri: string): Promise<string> {
21
- const result = await ImageTransformService.resize(uri, undefined, undefined, {
22
- base64: true,
23
- compress: 0.9,
21
+ const base64 = await FileSystem.readAsStringAsync(uri, {
22
+ encoding: FileSystem.EncodingType.Base64,
24
23
  });
25
24
 
26
- if (!result.base64) {
25
+ if (!base64) {
27
26
  throw new Error("Failed to convert image to base64");
28
27
  }
29
28
 
30
- return result.base64;
29
+ return base64;
31
30
  }
32
31
 
33
32
  export function createDevCallbacks(featureName: string) {