@umituz/react-native-ai-generation-content 1.89.56 → 1.89.58

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.89.56",
3
+ "version": "1.89.58",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -6,7 +6,6 @@
6
6
 
7
7
  import React, { useState, useCallback, useMemo } from "react";
8
8
  import { View, StyleSheet } from "react-native";
9
- import * as DocumentPicker from "expo-document-picker";
10
9
  import { AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
11
10
  import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
12
11
  import { NavigationHeader } from "@umituz/react-native-design-system/molecules";
@@ -53,6 +52,9 @@ export const AudioPickerScreen: React.FC<AudioPickerScreenProps> = ({
53
52
  const handlePick = useCallback(async () => {
54
53
  try {
55
54
  setError(null);
55
+
56
+ // Lazy load expo-document-picker only when needed
57
+ const DocumentPicker = await import("expo-document-picker");
56
58
  const result = await DocumentPicker.getDocumentAsync({
57
59
  type: mimeTypes as string[],
58
60
  copyToCacheDirectory: true,