ListItem

List item component to render inside a List component

Extends: TouchableOpacity
(meaning you can pass the super component's props as well).

PROPS

namedescriptiontypedefault
heightthe list item heightunion63
onPressaction for when pressing the itemfunc
onLongPressaction for when long pressing the itemfunc
containerStyleAdditional styles for the top containerunion
containerElementThe container element to wrap the ListItemfuncTouchableOpacity
underlayColorColors.dark70

LIVE EXAMPLE

CODE SAMPLE

See example here.