Closed bobness closed 2 years ago
I tried using https://docs.swmansion.com/react-native-gesture-handler/docs/api/components/swipeable/, but it ended up being way too much functionality than I needed. So I kept the Gesture.Pan(...) manual code (for now).
Gesture.Pan(...)
Also, the "only on one item" bug was that I was creating shared values and animated styles and reusing them for all of the news rows, so I created a new NewsRow component to fix that.
"only on one item"
NewsRow
I tried using https://docs.swmansion.com/react-native-gesture-handler/docs/api/components/swipeable/, but it ended up being way too much functionality than I needed. So I kept the
Gesture.Pan(...)
manual code (for now).Also, the
"only on one item"
bug was that I was creating shared values and animated styles and reusing them for all of the news rows, so I created a newNewsRow
component to fix that.