Coder Social home page Coder Social logo

滚动跳跃 about react-native-head-tab-view HOT 7 CLOSED

zyslife avatar zyslife commented on June 30, 2024
滚动跳跃

from react-native-head-tab-view.

Comments (7)

zyslife avatar zyslife commented on June 30, 2024

gif 图太大了, 传到cdn 了, https://imgs.wuazhu.cn/imgs/Kapture%202020-06-28%20at%2017.58.50_quaL8n.gif

问题: 如何固定滚动的生效区域, 就是我看 demo 的下拉加载都是在 tabbar 以下开始, 我的菊花都是从页面顶部开始, 这个是否跟 makeHeaderHeight 设置有关? 另一个页面的makeHeaderHeight是 200, 但是加载也是从页面顶部开始.

另一个是会产生连带滚动, 并且需要再次拖动才能回到原位

代码如下:

<TabView

      tabs={tabs}

      makeHeaderHeight={() => 44}

      activeTextStyle={{ color: '#333', fontSize: 22, fontWeight: '900' }}

      inactiveTextStyle={{ color: '#999', fontSize: 22, }}

      averageTab={false}

      renderScene={_renderScene}

      renderTabBar={(tabbarProps) => (

        <Tabbar

          {...tabbarProps}

          underLineHidden={true}

          style={{ borderBottomWidth: 0, }}

        />

      )}

      renderScrollHeader={() => <SearchInput style={{ height: 44 }} />}>

    </TabView>

因为demo里面的不是下拉加载,可以具体看看代码。
目前下拉加载是会在顶部,而且效果很差。不推荐使用下拉加载。
后续我会优化这个。

from react-native-head-tab-view.

wuazhu avatar wuazhu commented on June 30, 2024

因为demo里面的不是下拉加载,可以具体看看代码。
目前下拉加载是会在顶部,而且效果很差。不推荐使用下拉加载。
后续我会优化这个。

好的. 谢谢~

from react-native-head-tab-view.

wuazhu avatar wuazhu commented on June 30, 2024

image
还有个问题, 就是在滚动的时候加入了上拉加载更多, 滚着滚着就会报这个错. 也不知道哪里引起的..

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

Duplicate of #16

from react-native-head-tab-view.

wuazhu avatar wuazhu commented on June 30, 2024

Duplicate of #16

可是我里面并没有用到 scrollTop, 只有加了一个 listFootComponent, 展示已经到底了. 其他并未做指定滚动到某个节点或者位置.

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

Duplicate of #16

可是我里面并没有用到 scrollTop, 只有加了一个 listFootComponent, 展示已经到底了. 其他并未做指定滚动到某个节点或者位置.

最好是能提供一个demo让我可以查看具体问题

from react-native-head-tab-view.

zyslife avatar zyslife commented on June 30, 2024

我现在关掉这个issue,如果还有问题,请再次打开

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.