Replies: 1 comment
-
Go with option 2 but don't change the key. FlashList can update it's layout on the fly and can maintain scroll position of the first visible item. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can we make a Flashlist that can have a few different layouts( >1).
Image examples
Is there an example how this can be achieved ?
For now I have 3 ideas how this may be done:
renderItem
method that return different Item based on the layout type.numOfColumns
and thekey
of the FlashlistWith the 2 and 3 options I will lose the scroll position inside the list.
Is there any solution to solve this problem (can it be done in react-native) ? )
Beta Was this translation helpful? Give feedback.
All reactions