@umituz/react-native-ai-generation-content 1.17.89 → 1.17.90

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.17.89",
3
+ "version": "1.17.90",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -27,6 +27,8 @@ export interface GenerateButtonProps {
27
27
  readonly style?: ViewStyle;
28
28
  }
29
29
 
30
+ declare const __DEV__: boolean;
31
+
30
32
  export const GenerateButton: React.FC<GenerateButtonProps> = ({
31
33
  isDisabled = false,
32
34
  isProcessing = false,
@@ -45,11 +47,18 @@ export const GenerateButton: React.FC<GenerateButtonProps> = ({
45
47
  const displayText = isProcessing && processingText ? processingText : text;
46
48
  const finalDisplayText = costLabel ? `${displayText} (${costLabel})` : displayText;
47
49
 
50
+ const handlePress = () => {
51
+ if (__DEV__) console.log("[GenerateButton] onPress called, disabled:", disabled, "isDisabled:", isDisabled, "isProcessing:", isProcessing);
52
+ if (!disabled) {
53
+ onPress();
54
+ }
55
+ };
56
+
48
57
  return (
49
58
  <View style={[styles.container, { marginTop: tokens.spacing.xl }, style]}>
50
59
  <View style={styles.row}>
51
60
  <TouchableOpacity
52
- onPress={onPress}
61
+ onPress={handlePress}
53
62
  disabled={disabled}
54
63
  activeOpacity={0.8}
55
64
  style={[