Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Isolate from scrollview #1

Open
YusufBesim opened this issue Feb 17, 2016 · 3 comments
Open

Isolate from scrollview #1

YusufBesim opened this issue Feb 17, 2016 · 3 comments

Comments

@YusufBesim
Copy link

Hello,

Maybe if you can isolate lazyimage component from lazyscrollview its very amazing.

Thanks

@magicismight
Copy link
Owner

Thanks for this suggestion.
But cant do that right now. LazyloadViewandLazyloadImagemust be inside aLazyloadScrollVieworLazyloadListView. I have to listen the outside ScrollViews onScroll event to determine which LazyloadImages are visible.
I cant find the outer ScrollViewelement by only useLazyloadImage`.Because there is no way to access parent element from the children.
If you hava a better solution for this, please send a PR.

@magicismight
Copy link
Owner

The LazyScrollview component is almost like ScrollView componet.
You just replace the ScrollViews by using LazyScrollview, And add a name prop for it. everything else is the same as ScrollView did.

@jhampton
Copy link

I have the opposite problem right now – the scrollTo method doesn't seem to be available from a ref (from the parent component). Given the scrollable mixin, I don't see why that would be the case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants