Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] FlatFeed as Grid #169

Open
fawwaz opened this issue Jan 24, 2021 · 0 comments
Open

[FEATURE REQUEST] FlatFeed as Grid #169

fawwaz opened this issue Jan 24, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@fawwaz
Copy link

fawwaz commented Jan 24, 2021

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 ?

@vishalnarkhede vishalnarkhede added the enhancement New feature or request label Jan 24, 2021
@vishalnarkhede vishalnarkhede self-assigned this Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants