@umituz/react-native-ai-generation-content 1.19.2 → 1.19.4
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.19.
|
|
3
|
+
"version": "1.19.4",
|
|
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",
|
|
@@ -54,6 +54,10 @@ export interface GenerationErrorScreenProps {
|
|
|
54
54
|
readonly onTryAgain: () => void;
|
|
55
55
|
/** Choose another scenario callback */
|
|
56
56
|
readonly onChooseAnother: () => void;
|
|
57
|
+
/** Optional premium button text */
|
|
58
|
+
readonly premiumButtonText?: string;
|
|
59
|
+
/** Optional premium button callback */
|
|
60
|
+
readonly onGoPremium?: () => void;
|
|
57
61
|
/** Optional custom style */
|
|
58
62
|
readonly style?: StyleProp<ViewStyle>;
|
|
59
63
|
}
|
|
@@ -70,6 +74,8 @@ export const GenerationErrorScreen: React.FC<GenerationErrorScreenProps> = ({
|
|
|
70
74
|
config = DEFAULT_CONFIG,
|
|
71
75
|
onTryAgain,
|
|
72
76
|
onChooseAnother,
|
|
77
|
+
premiumButtonText,
|
|
78
|
+
onGoPremium,
|
|
73
79
|
style,
|
|
74
80
|
}) => {
|
|
75
81
|
const tokens = useAppDesignTokens();
|
|
@@ -120,10 +126,20 @@ export const GenerationErrorScreen: React.FC<GenerationErrorScreenProps> = ({
|
|
|
120
126
|
<View style={styles.spacer} />
|
|
121
127
|
|
|
122
128
|
<View style={styles.actionsContainer}>
|
|
129
|
+
{onGoPremium && premiumButtonText && (
|
|
130
|
+
<AtomicButton
|
|
131
|
+
title={premiumButtonText}
|
|
132
|
+
onPress={onGoPremium}
|
|
133
|
+
variant="primary"
|
|
134
|
+
size="lg"
|
|
135
|
+
fullWidth
|
|
136
|
+
/>
|
|
137
|
+
)}
|
|
138
|
+
|
|
123
139
|
<AtomicButton
|
|
124
140
|
title={translations.tryAgain}
|
|
125
141
|
onPress={onTryAgain}
|
|
126
|
-
variant="primary"
|
|
142
|
+
variant={onGoPremium ? "secondary" : "primary"}
|
|
127
143
|
size="lg"
|
|
128
144
|
fullWidth
|
|
129
145
|
/>
|