Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PullView没有onScroll属性,能否实现呢 #31

Open
toqianqian opened this issue Apr 13, 2017 · 5 comments
Open

PullView没有onScroll属性,能否实现呢 #31

toqianqian opened this issue Apr 13, 2017 · 5 comments

Comments

@toqianqian
Copy link

PullView实现下拉刷新页面,但是在向下滑动时想实时获得下滑的距离,也就是ScrollView中的onScroll功能,请问下PullView能实现吗

@greatbsky
Copy link
Owner

greatbsky commented Apr 17, 2017

V2.0.2已经实现了,PullView.js文件中有onScroll={this.onScroll} 直接使用PullView的onScroll即可,可以尝试下~~~

@dioxide
Copy link

dioxide commented Apr 18, 2017

我想利用onScroll ,获取下拉的百分比,进而实现与自定义RefreshControl的联动,自定义RefreshControl用lottie-react-native实现动画,可以控制动画播放的百分比进度。

能实现么?会不会有性能隐患

@toqianqian
Copy link
Author

@greatbsky ,我试了下,在PullView上用OnScroll貌似还是不行,我是在Pullable.js中的onScroll(e){}中加了this.props.onScroll && this.props.onScroll(e);这行代码才使PullView上的OnScroll生效的...

@jessieeeee
Copy link

正如 @toqianqian 所说,直接使用PullView的onScroll是不行的,希望作者@greatbsky 加到代码里去吧,能支持scrollview的其它属性自定义更好

@hou666
Copy link

hou666 commented Sep 4, 2019

@greatbsky ,我试了下,在PullView上用OnScroll貌似还是不行,我是在Pullable.js中的onScroll(e){}中加了this.props.onScroll && this.props.onScroll(e);这行代码才使PullView上的OnScroll生效的...

onScroll方法有,但依然获取不到滚动距离,你最后弃用了这个组件没?

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

No branches or pull requests

5 participants