react-native-activity-feed icon indicating copy to clipboard operation
react-native-activity-feed copied to clipboard

[FEATURE REQUEST] FlatFeed as Grid

Open fawwaz opened this issue 4 years ago • 0 comments

Setup (always fill this in):

  • iOS or Android? Android
  • Expo or regular React Native?: React Native
  • React Native Version: 0.63.3
  • getstream version: 7.1.1

Describe the bug I want to display FlatFeed as Grid. Usually, I do it by involving a raw array and map it over Row & Column component like this :

const elements = ['a', 'b', 'c', 'd', 'e'];

function Container() {
  return (
    <Row style={{ flexWrap: "wrap" }}>
      {elements.map(element => {
        <Column>
          {element}
        </Column>
      })}
    </Row>
  );
}

However, it is impossible to use FlatFeed as it only gives you a single 'element' , and it displays the activity in one column.

function Container() {
  <FlaFeed
     feedGroup="blahblah"
     userId="blahblah"
     Activity={({item}) => {
       return(
         <Text>{JSON.stringify(item, null, 2)}</Text>
       );
     }}
  >
}

How can we get access to 'raw array' of activity feeds so we can map over them to my custom component ?

fawwaz avatar Jan 24 '21 01:01 fawwaz