Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

have flat list automatically wrap react native

<FlatList
    contentContainerStyle={{flexDirection : "row", flexWrap : "wrap"}} 
    data={this.state.dataSource} renderItem={({item}) =>
        <Button>
            <Text>{item.key}</Text>
        </Button>
    }
/>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flat #list #automatically #wrap #react #native
ADD COMMENT
Topic
Name
5+8 =