@umituz/react-native-ai-generation-content 1.20.9 → 1.20.10
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.20.
|
|
3
|
+
"version": "1.20.10",
|
|
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",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Props-driven for 100+ apps compatibility
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import React from "react";
|
|
7
|
+
import React, { useEffect } from "react";
|
|
8
8
|
import { StyleSheet } from "react-native";
|
|
9
9
|
import {
|
|
10
10
|
BaseModal,
|
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
type GenerationProgressContentProps,
|
|
16
16
|
} from "./GenerationProgressContent";
|
|
17
17
|
|
|
18
|
+
declare const __DEV__: boolean;
|
|
19
|
+
|
|
18
20
|
export interface GenerationProgressRenderProps {
|
|
19
21
|
readonly progress: number;
|
|
20
22
|
readonly icon?: string;
|
|
@@ -58,6 +60,24 @@ export const GenerationProgressModal: React.FC<
|
|
|
58
60
|
const tokens = useAppDesignTokens();
|
|
59
61
|
const clampedProgress = Math.max(0, Math.min(100, progress));
|
|
60
62
|
|
|
63
|
+
// Debug logging
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
66
|
+
console.log("[GenerationProgressModal] Mounted/Updated:", {
|
|
67
|
+
visible,
|
|
68
|
+
progress: clampedProgress,
|
|
69
|
+
hasTitle: !!title,
|
|
70
|
+
hasMessage: !!message,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}, [visible, clampedProgress, title, message]);
|
|
74
|
+
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
if (typeof __DEV__ !== "undefined" && __DEV__ && visible) {
|
|
77
|
+
console.log("[GenerationProgressModal] VISIBLE - Modal should be showing now");
|
|
78
|
+
}
|
|
79
|
+
}, [visible]);
|
|
80
|
+
|
|
61
81
|
const handleClose = React.useCallback(() => {
|
|
62
82
|
onDismiss?.();
|
|
63
83
|
}, [onDismiss]);
|