@umituz/react-native-ai-generation-content 1.17.241 → 1.17.242

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.241",
3
+ "version": "1.17.242",
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",
@@ -31,6 +31,7 @@ interface CreationsGalleryScreenProps {
31
31
  readonly onEmptyAction?: () => void;
32
32
  readonly emptyActionLabel?: string;
33
33
  readonly showFilter?: boolean;
34
+ readonly onViewResult?: (creation: Creation) => void;
34
35
  }
35
36
 
36
37
  export function CreationsGalleryScreen({
@@ -43,6 +44,7 @@ export function CreationsGalleryScreen({
43
44
  onEmptyAction,
44
45
  emptyActionLabel,
45
46
  showFilter = config.showFilter ?? true,
47
+ onViewResult,
46
48
  }: CreationsGalleryScreenProps) {
47
49
  const insets = useSafeAreaInsets();
48
50
  const tokens = useAppDesignTokens();
@@ -155,7 +157,7 @@ export function CreationsGalleryScreen({
155
157
  ), [isLoading, creations, filters.isFiltered, tokens, t, config, emptyActionLabel, onEmptyAction, filters.clearAllFilters]);
156
158
 
157
159
  if (selectedCreation) {
158
- return <CreationDetailScreen creation={selectedCreation} config={config} onClose={() => setSelectedCreation(null)} onShare={handleShare} onDelete={handleDelete} t={t} />;
160
+ return <CreationDetailScreen creation={selectedCreation} config={config} onClose={() => setSelectedCreation(null)} onShare={handleShare} onDelete={handleDelete} onViewResult={onViewResult} t={t} />;
159
161
  }
160
162
 
161
163
  return (