ListItem
List item component to render inside a List component
(code example)
info
This component extends TouchableOpacity props.
Usageβ
Live Editor
<ListItem onPress={() => console.log('pressed')}> <Text grey10 text60 marginL-10>The item</Text> </ListItem>
Result
Loading...
APIβ
containerElementβ
The container element to wrap the ListItem
React.ComponentType<ListItemProps | TouchableOpacityProps>
containerStyleβ
Additional styles for the top container
ViewStyle
heightβ
the list item height
ViewStyle['height']
onLongPressβ
action for when long pressing the item
() => void
onPressβ
action for when pressing the item
() => void
styleβ
The inner element style
ViewStyle
testIDβ
The test id for e2e tests
string
underlayColorβ
The inner element pressed backgroundColor
string