@umituz/react-native-ai-generation-content 1.17.75 → 1.17.76
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
|
@@ -12,7 +12,7 @@ export interface AIGenScreenHeaderProps {
|
|
|
12
12
|
readonly title: string;
|
|
13
13
|
readonly description?: string;
|
|
14
14
|
readonly navigationType?: NavigationButtonType;
|
|
15
|
-
readonly onNavigationPress
|
|
15
|
+
readonly onNavigationPress?: () => void;
|
|
16
16
|
readonly headerContent?: ReactNode;
|
|
17
17
|
readonly rightContent?: ReactNode;
|
|
18
18
|
readonly titleType?: "headlineLarge" | "titleLarge";
|
|
@@ -62,13 +62,15 @@ export const AIGenScreenHeader: React.FC<AIGenScreenHeaderProps> = ({
|
|
|
62
62
|
</View>
|
|
63
63
|
<View style={styles.headerActions}>
|
|
64
64
|
{rightContent}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
{onNavigationPress && (
|
|
66
|
+
<TouchableOpacity
|
|
67
|
+
onPress={onNavigationPress}
|
|
68
|
+
style={buttonStyle}
|
|
69
|
+
hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
70
|
+
>
|
|
71
|
+
<AtomicIcon name={iconName} size="md" color={iconColor} />
|
|
72
|
+
</TouchableOpacity>
|
|
73
|
+
)}
|
|
72
74
|
</View>
|
|
73
75
|
</View>
|
|
74
76
|
{showDescription && description && (
|