@umituz/react-native-ai-generation-content 1.83.49 → 1.83.50
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.83.
|
|
3
|
+
"version": "1.83.50",
|
|
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
|
|
7
|
+
import React from "react";
|
|
8
8
|
import { View, StyleSheet, TouchableOpacity, type ViewStyle } from "react-native";
|
|
9
9
|
import {
|
|
10
10
|
AtomicText,
|
|
@@ -41,25 +41,12 @@ export const GenerateButton: React.FC<GenerateButtonProps> = ({
|
|
|
41
41
|
onAccessoryRightPress,
|
|
42
42
|
style,
|
|
43
43
|
}) => {
|
|
44
|
-
if (__DEV__) {
|
|
45
|
-
console.log("[GenerateButton] RENDERING NOW");
|
|
46
|
-
}
|
|
47
|
-
|
|
48
44
|
const tokens = useAppDesignTokens();
|
|
49
45
|
const disabled = isDisabled || isProcessing;
|
|
50
46
|
const displayText = isProcessing && processingText ? processingText : text;
|
|
51
47
|
const finalDisplayText = costLabel ? `${displayText} (${costLabel})` : displayText;
|
|
52
48
|
|
|
53
|
-
useEffect(() => {
|
|
54
|
-
if (__DEV__) {
|
|
55
|
-
console.log("[GenerateButton] MOUNTED/UPDATED - isDisabled:", isDisabled, "isProcessing:", isProcessing, "disabled:", disabled, "text:", text);
|
|
56
|
-
}
|
|
57
|
-
}, [isDisabled, isProcessing, disabled, text]);
|
|
58
|
-
|
|
59
49
|
const handlePress = () => {
|
|
60
|
-
if (__DEV__) {
|
|
61
|
-
console.log("[GenerateButton] PRESSED - disabled:", disabled, "isDisabled:", isDisabled, "isProcessing:", isProcessing);
|
|
62
|
-
}
|
|
63
50
|
if (!disabled) {
|
|
64
51
|
onPress();
|
|
65
52
|
}
|