Skip to content

add flatten flag to Repeat foreach #14

@Amine-H

Description

@Amine-H

add a flag that flattens the prop that gets passed to Repeat's children

const MyList = (items) => {
   <Repeat foreach={items} flatten>
      <MyListItem />
   </Repeat>
}

const MyListItem = ({value}) => <Text>{value}</Text>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions