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

itemsPerRow not working #5

Open
piloulac opened this issue Sep 15, 2017 · 0 comments
Open

itemsPerRow not working #5

piloulac opened this issue Sep 15, 2017 · 0 comments

Comments

@piloulac
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant