Skip to content

Commit

Permalink
Merge pull request #128 from GetLuko/hugo/fix/remove-line-limit
Browse files Browse the repository at this point in the history
NavigationTitle: remove default number of line
  • Loading branch information
hcourthias authored Oct 18, 2023
2 parents 7b16e31 + bb87be1 commit 9b6c88b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file modified packages/sandbox/e2e/android/screenshots/NavigationTitle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/sandbox/e2e/ios/screenshots/NavigationTitle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface NavigationTitleProps {
icon?: IconsName;
onIconPress?: () => void;
buttonIconAccessibilityLabel?: string;
titleNumberOfLines?: number;
}

export const NavigationTitle = ({
Expand All @@ -24,6 +25,7 @@ export const NavigationTitle = ({
icon,
onIconPress,
buttonIconAccessibilityLabel,
titleNumberOfLines,
}: NavigationTitleProps) => {
const { titleColor, headerColor, valueColor, headerOpacity, valueOpacity } =
getNavigationTitleColors(appearance);
Expand Down Expand Up @@ -55,7 +57,7 @@ export const NavigationTitle = ({
accessibilityRole="header"
color={titleColor}
textAlign={position}
numberOfLines={4}
numberOfLines={titleNumberOfLines}
>
{title}
</Text>
Expand Down

0 comments on commit 9b6c88b

Please sign in to comment.