@umituz/react-native-ai-generation-content 1.89.73 → 1.89.75
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.
|
|
3
|
+
"version": "1.89.75",
|
|
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",
|
|
@@ -55,8 +55,20 @@ export const AudioPickerScreen: React.FC<AudioPickerScreenProps> = ({
|
|
|
55
55
|
|
|
56
56
|
// Lazy load expo-document-picker only when needed
|
|
57
57
|
// Use require() to avoid Metro bundler parsing the package
|
|
58
|
-
|
|
59
|
-
const DocumentPicker =
|
|
58
|
+
const DocumentPickerModule = require("expo-document-picker");
|
|
59
|
+
const DocumentPicker = DocumentPickerModule as {
|
|
60
|
+
getDocumentAsync: (options: {
|
|
61
|
+
type: string[];
|
|
62
|
+
copyToCacheDirectory: boolean;
|
|
63
|
+
}) => Promise<{
|
|
64
|
+
canceled: boolean;
|
|
65
|
+
assets?: Array<{
|
|
66
|
+
uri: string;
|
|
67
|
+
name: string;
|
|
68
|
+
size?: number;
|
|
69
|
+
}>;
|
|
70
|
+
}>;
|
|
71
|
+
};
|
|
60
72
|
const result = await DocumentPicker.getDocumentAsync({
|
|
61
73
|
type: mimeTypes as string[],
|
|
62
74
|
copyToCacheDirectory: true,
|