React Native FlatList separator between columns
问题 I have a FlatList with multiple columns: <FlatList numColumns={4} ItemSeparatorComponent={this.renderSeparator} ... </FlatList> And a line separator: renderSeparator = () => ( <View style={{ backgroundColor: 'red', height: 0.5, }} /> ); But the separator only appear between rows, not between columns (even if i add width: 0.5 View on expo 回答1: you can just add if else condition inside renderItems and check the index modulus to add separator.. I just use this one and everything works great.