ListItem
List item component to render inside a List component
(code example)
info
This component extends TouchableOpacity props.
#
Usage<ListItem onPress={() => console.log('pressed')}> <Text grey10 text60 marginL-10>The item</Text></ListItem>
#
API#
containerElementThe container element to wrap the ListItem
React.ComponentType<ListItemProps | TouchableOpacityProps>
#
containerStyleAdditional styles for the top container
ViewStyle
#
heightthe list item height
ViewStyle['height']
#
onLongPressaction for when long pressing the item
() => void
#
onPressaction for when pressing the item
() => void
#
styleThe inner element style
ViewStyle
#
testIDThe test id for e2e tests
string
#
underlayColorThe inner element pressed backgroundColor
string