GridListItem
A single grid view/list item component
(code example)
Usageβ
<GridListItem key={index} title={'Title'} subtitle={'Subtitle'} description={'Description goes here'}/>
APIβ
alignToStartβ
Should content be align to start
boolean
containerPropsβ
Props to pass on to the touchable container
TouchableOpacityProps | ViewProps
containerStyleβ
Custom container style
ViewStyle
descriptionβ
Description content text
string | React.ReactElement
descriptionColorβ
Description content color
string
descriptionLinesβ
Description content number of lines
number
descriptionTypographyβ
Description content typography
string
horizontalAlignmentβ
Content horizontal alignment
HorizontalAlignment
imagePropsβ
Image props object for rendering an image item
ImageProps
itemSizeβ
The item size
number | ImageSize
onPressβ
The item's action handler
TouchableOpacityProps['onPress']
overlayTextβ
Renders the title, subtitle and description inside the item
boolean
overlayTextContainerStyleβ
Custom container styling for inline text
ViewStyle
renderCustomItemβ
Custom GridListItem to be rendered in the GridView
() => React.ReactElement
renderOverlayβ
Renders an overlay on top of the image
() => React.ReactElement
subtitleβ
Subtitle content text
string | React.ReactElement
subtitleColorβ
Subtitle content color
string
subtitleLinesβ
Subtitle content number of lines
number
subtitleTypographyβ
Subtitle content typography
string
testIDβ
Test ID for component
string
titleβ
Title content text
string | React.ReactElement
titleColorβ
Title content color
string
titleLinesβ
Title content number of lines
number
titleTypographyβ
Title content typography
string