question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sorry 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:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gorhomcommented, May 15, 2020

hi @Hirbod , i will try to get both internal and external ref to be assigned to the flatlist on next release 👍

0reactions
gorhomcommented, May 26, 2020

@Hirbod glad to hear that 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Awesome Definition & Meaning - Merriam-Webster
Many object to the use of awesome to describe something (such as a sandwich) that does not literally elicit feelings of awe.
Read more >
Awesome Definition & Meaning - Dictionary.com
exhibiting or marked by awe; showing reverence, admiration, or fear. Slang. very impressive: That new white convertible is totally awesome.
Read more >
awesome - Wiktionary
(dated) Causing awe or terror; inspiring wonder or excitement. [from 1590–1600.] quotations ▽synonyms △. Synonyms: awe-inspiring; see also Thesaurus:awesome.
Read more >
AWESOME | definition in the Cambridge English Dictionary
causing feelings of great admiration, respect, or fear: An awesome challenge/task lies ahead of them. ... extremely good: You look totally awesome ......
Read more >
Awesome - Definition, Meaning & Synonyms - Vocabulary.com
An awesome something or someone is amazing, breathtaking, or overwhelming. Like traveling the globe in a hot air balloon or visiting the Taj...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found