GridListItem
A single grid view/list item component
(code example)
#
Usage<GridListItem key={index} title={'Title'} subtitle={'Subtitle'} description={'Description goes here'}/>
#
API#
alignToStartShould content be align to start
boolean
#
containerPropsProps to pass on to the touchable container
TouchableOpacityProps | ViewProps
#
containerStyleCustom container style
ViewStyle
#
descriptionDescription content text
string | React.ReactElement
#
descriptionColorDescription content color
string
#
descriptionLinesDescription content number of lines
number
#
descriptionTypographyDescription content typography
string
#
horizontalAlignmentContent horizontal alignment
HorizontalAlignment
#
imagePropsImage props object for rendering an image item
ImageProps
#
itemSizeThe item size
number | ImageSize
#
onPressThe item's action handler
TouchableOpacityProps['onPress']
#
overlayTextRenders the title, subtitle and description inside the item
boolean
#
overlayTextContainerStyleCustom container styling for inline text
ViewStyle
#
renderCustomItemCustom GridListItem to be rendered in the GridView
() => React.ReactElement
#
renderOverlayRenders an overlay on top of the image
() => React.ReactElement
#
subtitleSubtitle content text
string | React.ReactElement
#
subtitleColorSubtitle content color
string
#
subtitleLinesSubtitle content number of lines
number
#
subtitleTypographySubtitle content typography
string
#
testIDTest ID for component
string
#
titleTitle content text
string | React.ReactElement
#
titleColorTitle content color
string
#
titleLinesTitle content number of lines
number
#
titleTypographyTitle content typography
string