Unable to Iterate and create ActionButton.Items
See original GitHub issueTrying to perform the following , but no success
<ActionButton buttonColor="red" verticalOrientation="down" position="right" offsetX={10} offsetY={5} hideShadow={true}>
<ActionButton.Item buttonColor='#9b59b6' title="All Offers" onPress={() => this.filterAdverts(0,"All Offers")}>
<Icon name="md-create" style={styles.actionButtonIcon} />
</ActionButton.Item>
{
allUserInterests.map((AUL, x) => {
<ActionButton.Item
key={x}
buttonColor='#9b59b6' title={<Text>{AUL.interestName}</Text>}
onPress={() => this.filterAdverts(AUL.interestID,AUL.interestName)}>
<Icon name="md-create" style={styles.actionButtonIcon} />
</ActionButton.Item>
})
}
</ActionButton>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
React Native Action Button - Unable to Add buttons Dynamically
I have created a function that returns me views of these buttons. getDynamicBtns() { return dynamicButtonsList.map(item, key) => {( return < ...
Read more >How to conditionally append a list using action buttons
... iterating through a list of lists using a 'yes' and 'no' action button. ... I want to be able to build a...
Read more >Shiny series: Implementing a next and back button
Reviewing the exercise, I see that I need three UI elements: ... We use two functions here to set up the UI: actionButton()...
Read more >Web Video / Action Button - TV Tropes
The videos are peppered with ruminations on core elements of the game in question, such as the gameplay loop and narrative, as well...
Read more >Python "for" Loops (Definite Iteration)
Watch Now This tutorial has a related video course created by the Real Python team. ... This type of loop iterates over a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see. The problem is that I had the array.map AND an item. Like:
If I left only the array.map, it works. Thanks for showing me this @DimitrisTzimikas
if you do all your logic prior to the return in render it works;