@umituz/react-native-ai-generation-content 1.17.91 → 1.17.92
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
|
@@ -44,13 +44,16 @@ export const AIGenerationForm: React.FC<AIGenerationFormProps> = ({
|
|
|
44
44
|
translations,
|
|
45
45
|
children,
|
|
46
46
|
}) => {
|
|
47
|
+
// Log immediately on every render
|
|
48
|
+
if (__DEV__) console.log("[AIGenerationForm] RENDERING NOW - hideGenerateButton:", hideGenerateButton);
|
|
49
|
+
|
|
47
50
|
const tokens = useAppDesignTokens();
|
|
48
51
|
const isAdvancedVisible = showAdvanced !== undefined ? showAdvanced : true;
|
|
49
52
|
const buttonIsDisabled = onPromptChange ? !prompt?.trim() : false;
|
|
50
53
|
|
|
51
54
|
useEffect(() => {
|
|
52
55
|
if (__DEV__) {
|
|
53
|
-
console.log("[AIGenerationForm]
|
|
56
|
+
console.log("[AIGenerationForm] MOUNTED/UPDATED - prompt:", prompt, "isGenerating:", isGenerating, "buttonIsDisabled:", buttonIsDisabled, "hideGenerateButton:", hideGenerateButton);
|
|
54
57
|
}
|
|
55
58
|
}, [prompt, isGenerating, buttonIsDisabled, hideGenerateButton]);
|
|
56
59
|
|
|
@@ -42,6 +42,9 @@ export const GenerateButton: React.FC<GenerateButtonProps> = ({
|
|
|
42
42
|
onAccessoryRightPress,
|
|
43
43
|
style,
|
|
44
44
|
}) => {
|
|
45
|
+
// Log immediately on every render
|
|
46
|
+
if (__DEV__) console.log("[GenerateButton] RENDERING NOW");
|
|
47
|
+
|
|
45
48
|
const tokens = useAppDesignTokens();
|
|
46
49
|
const disabled = isDisabled || isProcessing;
|
|
47
50
|
const displayText = isProcessing && processingText ? processingText : text;
|