diff --git a/src/components/List/ListItem.js b/src/components/List/ListItem.js index 2bd5173a57..51572a6122 100644 --- a/src/components/List/ListItem.js +++ b/src/components/List/ListItem.js @@ -49,6 +49,14 @@ type Props = $RemoveChildren & {| * Style that is passed to Description element. */ descriptionStyle?: TextStyleProp, + /** + * Ellipsize Mode for the Title + */ + titleEllipsizeMode?: 'head' | 'middle' | 'tail' | 'clip', + /** + * Ellipsize Mode for the Description + */ + descriptionEllipsizeMode?: 'head' | 'middle' | 'tail' | 'clip', |}; /** @@ -90,6 +98,8 @@ class ListItem extends React.Component { style, titleStyle, descriptionStyle, + titleEllipsizeMode, + descriptionEllipsizeMode, ...rest } = this.props; const titleColor = color(theme.colors.text) @@ -111,6 +121,7 @@ class ListItem extends React.Component { {left ? left({ color: descriptionColor }) : null} @@ -118,6 +129,7 @@ class ListItem extends React.Component { {description ? ( React.ReactNode; titleStyle?: StyleProp; descriptionStyle?: StyleProp; + titleEllipsizeMode?: 'head' | 'middle' | 'tail' | 'clip'; + descriptionEllipsizeMode?: 'head' | 'middle' | 'tail' | 'clip'; } export declare class Item extends React.Component {}