Awesome
See original GitHub issueSorry for hijacking your Github, but I just wanted to thank you and add some feature requests. Since I have a pretty similar copy to the facebook stories in my react app, I was thinking to implement this sticky item since 2 or 3 weeks but I’ve been so lazy, and now, I just found this one here which looks very promising.
My story is based on react-native-snap-carousel though, so I will need to refactor I guess, but really good work!
While clicking on the story, I’ll open an overlay which is swipable too and I sync the underlaying story position when the user swipes the “overlay modal”, but as far as I can see, I can’t get a ref on your FlatList component, and you added {…rest} at top, so you’ll overwrite props I might need to adjust.
https://github.com/gorhom/react-native-sticky-item/blob/master/src/StickyItemFlatList.tsx#L154
Do you think there is a way to register a ref “outside” to manipulate the scroll position and move {...rest}
to the bottom of FlatList so we can overwrite your hardcoded settings?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
hi @Hirbod , i will try to get both internal and external ref to be assigned to the flatlist on next release 👍
@Hirbod glad to hear that 😃