Coder Social home page Coder Social logo

Comments (8)

A-ANing avatar A-ANing commented on June 30, 2024

Rn的RefreshControl刷新控件Android是用的原生SwiperrefreshLayout,这个SwiperrefreshLayout有个方法叫setProgressViewEndTarget的,可以修改刷新控件距离顶部的高度,但是rn没有暴露这个方法[捂脸],不懂原生不知道怎么添加这个方法给rn用

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

嗯,是这样的
1、下拉刷新
2、头部点击和上下滑动不能共存
这两个问题确实是这个组件的缺陷,但是我目前太忙也没时间去重写这个组件。只能闲下来了去完善。

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

1、下拉刷新
2、头部点击和上下滑动不能共存 (此功能已经添加)

from react-native-head-tab-view.

FrankyLee-dev avatar FrankyLee-dev commented on June 30, 2024

Android使用原生的SmartRefreshLayout库,ios用了MJRefresh,自定义了下拉刷新,但是不知道怎么用HPageViewHoc包裹能够让头部滑动。这个图的场景就是搜索框平移缩小到顶部。

B4919707-041A-4F48-8EE7-A03BC294B3D8
Screenshot_1596455894
@zyslife 能请教一下吗?

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

from react-native-head-tab-view.

FrankyLee-dev avatar FrankyLee-dev commented on June 30, 2024

@zyslife 是上滑的时候搜索栏往上平移宽度变小不会盖住右边的小按钮,有点像京东APP首页的搜索栏。目前下拉刷新视图是随手指下拉的。

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

from react-native-head-tab-view.

FrankyLee-dev avatar FrankyLee-dev commented on June 30, 2024

_makeScrollTrans,那你可以看看Example2里面这个方法,看看能否通过这个动画控制 发自我的iPhone

在 2020年8月4日,09:57,frankyLHJ @.***> 写道:  @zyslife 是上滑的时候搜索栏往上平移宽度变小不会盖住右边的小按钮,有点像京东APP首页的搜索栏。目前下拉刷新视图是随手指下拉的。 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

嗯嗯,我之前用_makeScrollTrans普通的Flatlist是可以实现,但是跟现在的自定义下拉刷新组件一起用上滑时,头部不能滑动了。

from react-native-head-tab-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.