Skip to content

Commit

Permalink
Card's title numberOfLines
Browse files Browse the repository at this point in the history
Add number of lines to Card's title
  • Loading branch information
6axter82 authored and iRoachie committed Dec 1, 2017
1 parent e145545 commit ae9fab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/card/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Card = props => {
imageWrapperStyle,
title,
titleStyle,
titleNumberOfLines,
featuredTitle,
featuredTitleStyle,
featuredSubtitle,
Expand Down Expand Up @@ -63,6 +64,7 @@ const Card = props => {
titleStyle && titleStyle,
fontFamily && { fontFamily },
]}
numberOfLines={titleNumberOfLines}
>
{title}
</Text>
Expand Down Expand Up @@ -129,6 +131,7 @@ Card.propTypes = {
imageWrapperStyle: ViewPropTypes.style,
fontFamily: PropTypes.string,
imageProps: PropTypes.object,
titleNumberOfLines: PropTypes.number,
};

const styles = StyleSheet.create({
Expand Down

0 comments on commit ae9fab7

Please sign in to comment.