Skip to content
This repository was archived by the owner on Feb 5, 2021. It is now read-only.
This repository was archived by the owner on Feb 5, 2021. It is now read-only.

itemsPerRow not working #5

Description

@piloulac

Hello!

I'm trying to use your framework and it appears that the prop itemsPerRow doesn't work for me..
Here is my calling function:

_renderGridView() {
        if(this.state.dataSource){
            ...
            return (
                <GridView
                    dataSource={dataSource}
                    itemsPerRow={2}
                    padding={4}
                    renderItem={(item, sectionID, rowID, itemIndex, itemID) => {
                        return (
                           <ArtistItem artist={item}/>
                        );
                      }}
                />
            );
        }
    }

But they are every time 1 per row.. Even if I reduce the width of each element they stay on the left of the screen 1 per row.

Thank you in advance if you have an idea!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions