React Native FlatList separator between columns
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.
something like :-
_renderItem = ({item,index}) => {
return(
<View style={[{ backgroundColor: 'red', flex: 1 }, index%2==0 ? { marginRight: 10 } : { marginLeft: 10 } ]}>
<Text>{item.key}</Text>
</View>
)
}
hope this will help you.