-
Notifications
You must be signed in to change notification settings - Fork 976
Closed
Labels
📱 Componentscomponents module-specificcomponents module-specific
Description
Issue type
I'm submitting a ... (check one with "x")
- bug report
- feature request
Issue description
Current behavior:
I can't conditionally render icons in list items inside list.
Expected behavior:
Show icon on certain list items, and not on others.
<List
style={styles.list}
data={loops}
renderItem={({ item }) => (
// if(true){}
<ListItem
onPress={() => this.goToLoop(item._snapshot.key)}
title={item._snapshot.value.displayName}
description={item._snapshot.key}
accessory={() => this.renderAccessory(item._snapshot.key)}
icon={() =>
this.EditIcon(item._snapshot.key)
}
/>
Metadata
Metadata
Assignees
Labels
📱 Componentscomponents module-specificcomponents module-specific