@umituz/react-native-ai-generation-content 1.17.273 → 1.17.274
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.
|
|
3
|
+
"version": "1.17.274",
|
|
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",
|
|
@@ -45,6 +45,12 @@ export function CreationCard({
|
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
const handlePress = useCallback(() => {
|
|
48
|
+
if (__DEV__) {
|
|
49
|
+
console.log("[CreationCard] handlePress called", {
|
|
50
|
+
creationId: creation.id,
|
|
51
|
+
hasOnPress: !!callbacks.onPress
|
|
52
|
+
});
|
|
53
|
+
}
|
|
48
54
|
callbacks.onPress?.(creation);
|
|
49
55
|
}, [callbacks, creation]);
|
|
50
56
|
|
|
@@ -103,17 +103,27 @@ export function CreationsGalleryScreen({
|
|
|
103
103
|
return buttons;
|
|
104
104
|
}, [showStatusFilter, showMediaFilter, filters, t, config.translations]);
|
|
105
105
|
|
|
106
|
+
const handleCardPress = useCallback((item: Creation) => {
|
|
107
|
+
if (__DEV__) {
|
|
108
|
+
console.log("[CreationsGalleryScreen] Card pressed", {
|
|
109
|
+
creationId: item.id,
|
|
110
|
+
hasOnViewResult: !!onViewResult
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
onViewResult?.(item);
|
|
114
|
+
}, [onViewResult]);
|
|
115
|
+
|
|
106
116
|
const renderItem = useCallback(({ item }: { item: Creation }) => (
|
|
107
117
|
<CreationCard
|
|
108
118
|
creation={item}
|
|
109
119
|
callbacks={{
|
|
110
|
-
onPress: () =>
|
|
120
|
+
onPress: () => handleCardPress(item),
|
|
111
121
|
onShare: async () => handleShare(item),
|
|
112
122
|
onDelete: () => handleDelete(item),
|
|
113
123
|
onFavorite: () => handleFavorite(item, !item.isFavorite),
|
|
114
124
|
}}
|
|
115
125
|
/>
|
|
116
|
-
), [handleShare, handleDelete, handleFavorite,
|
|
126
|
+
), [handleShare, handleDelete, handleFavorite, handleCardPress]);
|
|
117
127
|
|
|
118
128
|
const renderHeader = useMemo(() => {
|
|
119
129
|
if ((!creations || creations.length === 0) && !isLoading) return null;
|