Comments (7)
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.
因为demo里面的不是下拉加载,可以具体看看代码。
目前下拉加载是会在顶部,而且效果很差。不推荐使用下拉加载。
后续我会优化这个。
好的. 谢谢~
from react-native-head-tab-view.
还有个问题, 就是在滚动的时候加入了上拉加载更多, 滚着滚着就会报这个错. 也不知道哪里引起的..
from react-native-head-tab-view.
Duplicate of #16
from react-native-head-tab-view.
Duplicate of #16
可是我里面并没有用到 scrollTop, 只有加了一个 listFootComponent, 展示已经到底了. 其他并未做指定滚动到某个节点或者位置.
from react-native-head-tab-view.
Duplicate of #16
可是我里面并没有用到 scrollTop, 只有加了一个 listFootComponent, 展示已经到底了. 其他并未做指定滚动到某个节点或者位置.
最好是能提供一个demo让我可以查看具体问题
from react-native-head-tab-view.
我现在关掉这个issue,如果还有问题,请再次打开
from react-native-head-tab-view.
Related Issues (20)
- makeScrollTrans只调用一次 HOT 6
- ERROR TypeError: Cannot read property 'CollapsibleHeaderTabView' of undefined HOT 4
- iOS情况下HScrollView里面的点击事件失效
- This plugin is not applicable to @react-navigation/native-stack HOT 8
- 问题复现
- 安卓滚动的时候再触发滚动的话会重置初始化位置
- react-native-reanimated 2+ has bugs, can't use react-native-debugger, can only use flipper. This will make it impossible for us to debug the program properly HOT 3
- react native debugger not work if use react native remained 2+ HOT 2
- 使用react-native-tab-view-collapsible-header底部初始化会有白条 HOT 5
- 组件兼容性问题 HOT 3
- 全是bug 这库是闹着玩的吧 官方demo就没对齐过 HOT 4
- When height on renderScrollHeader full screen device not scroll with Android
- 是否可以支持其他 list 组件
- FlashList support ?
- Glitchy header offset position on Android - offsets might not be syncing properly
- demo 跑不起来,也没有文档
- How do I change the fade-in animation for the header and list? HOT 2
- onRefresh not working
- An error occurred while enabling lazy=true
- can not use onScroll, onScrollBeginDrag in HScrollView and HFlatList
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-head-tab-view.