react-native-lazyload icon indicating copy to clipboard operation
react-native-lazyload copied to clipboard

In LazyloadListView renderScrollComponent props It doesn't work。

Open sundayha opened this issue 9 years ago • 8 comments

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

sundayha avatar Sep 02 '16 01:09 sundayha

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

waleedarshad-vf avatar Sep 22 '16 12:09 waleedarshad-vf

@magicismight ?

waleedarshad-vf avatar Sep 23 '16 06:09 waleedarshad-vf

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

waleedarshad-vf avatar Sep 26 '16 07:09 waleedarshad-vf

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.

magicismight avatar Sep 26 '16 08:09 magicismight

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 avatar Sep 26 '16 09:09 waleedarshad-vf

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

waleedarshad-vf avatar Sep 26 '16 09:09 waleedarshad-vf

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

magicismight avatar Sep 26 '16 09:09 magicismight

Thanks @magicismight it works! appreciate it :)

waleedarshad-vf avatar Sep 28 '16 06:09 waleedarshad-vf