Skip to main content
Version: 3.4.2

listitem

Props

Also receives all TouchableHighlight props


Child Components

ListItem.ButtonGroup

Receives all ButtonGroup props.

ListItem.CheckBox

Receives all CheckBox props.

ListItem.Chevron

Receives all Icon props.

ListItem.Content

Receives all View props.

ListItem.Input

Receives all Input props.

ListItem.Subtitle

Receives all Text props.

ListItem.Title

Receives all Text props.

ListItem.Accordion

Also Receives all ListItem props.

ListItem.Swipeable

Also recieves all ListItem Props


Reference

bottomDivider

Add divider at the bottom of the list item

TypeDefault
booleanfalse

Component

replace element with custom element (optional)

TypeDefault
View or TouchableHighlight (default) if onPress method is added as propcomponent

containerStyle

additional main container styling (optional)

TypeDefault
object (style)none

disabled

If true the user won't be able to perform any action on the list item.

TypeDefault
booleannone

disabledStyle

Specific styling to be used when list item is disabled.

TypeDefault
object (style)none

onLongPress

onLongPress method for link (optional)

TypeDefault
functionnone

onPress

onPress method for link (optional)

TypeDefault
functionnone

pad

adds spacing between the leftComponent, the title component & right component

TypeDefault
number16

topDivider

Add divider at the top of the list item

TypeDefault
booleanfalse

ViewComponent

Container for linear gradient (for non-expo user)

TypeDefault
componentView

isExpanded

Accordion Expanded

TypeDefault
booleonfalse

icon

Icon for unexpanded Accordion

TypeDefault
IocnNodechevron-down

expandIcon

Icon when Accordion is expanded, if not provided icon will be rotated 180deg (optional)

TypeDefault
IconNodenone

content

Similar to ListItem's child

TypeDefault
ReactNodeEmpty ListItem.Content

noIcon

Don't show accordion icon

TypeDefault
booleanfalse

noRotation

Don't rotate when Accordion is expanded

TypeDefault
booleanfalse

animation

Boolean to show animation,

TypeDefault
Object or number{type:"timing",duration:350}

leftContent

Left Content

TypeDefault
ReactNodenone

rightContent

Right Content

TypeDefault
ReactNodenone

leftStyle

Style of left container

TypeDefault
object (style)none

rightStyle

Style of right container

TypeDefault
object (style)none

leftWidth

Width to swipe left

TypeDefault
numberScreenWidth/3

rightWidth

Width to swipe right

TypeDefault
numberScreenWidth/3