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

In LazyloadListView renderScrollComponent props It doesn't work。 #17

Open
sundayha opened this issue Sep 2, 2016 · 8 comments
Open

Comments

@sundayha
Copy link

sundayha commented Sep 2, 2016

在LazyloadListView组件中renderScrollComponent属性使用不了。求教怎么回事?也不报错
Hope to have a solution Thank you!

@waleedarshad-vf
Copy link

Same issue facing. Anyone working on it? @sundayha what solution works for you?

@waleedarshad-vf
Copy link

@magicismight ?

@waleedarshad-vf
Copy link

@magicismight we need your help. at least you can guide me what i do to achieve this functionality.

@magicismight
Copy link
Owner

Sorry I didn't reply this in time, I'm a little busy with my work those days.
You can implement this prop on this line:
https://github.com/magicismight/react-native-lazyload/blob/master/lib/LazyloadListView.js#L41

But make sure the renderScrollComponent prop returns a <LazyloadScrollView />.
It would be great if you can send me a PR after you have fixed this.

@waleedarshad-vf
Copy link

i need to use this props into the application but i am confused how can i use both in renderScrollComponent https://github.com/jaysoo/react-native-parallax-scroll-view/blob/master/examples/ListView/Talks.js#L53

Anything you can tell on this?

@waleedarshad-vf
Copy link

I have LazyloadScrollView as well as ParallaxScrollView. this is causing problem :(

@magicismight
Copy link
Owner

Since LazyloadScrollView and ParallaxScrollView are both based on ScrollView.
You cannot use them at the same time, unless you rewrite a component which is based on LazyloadScrollView or ParallaxScrollView.

orveride the render method and return a ParallaxScrollView instead of a ScrollView.
https://github.com/magicismight/react-native-lazyload/blob/master/lib/LazyloadScrollView.js#L100-L112

@waleedarshad-vf
Copy link

Thanks @magicismight it works! appreciate it :)

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