Comments (7)
EddyDaddy 您好,
感谢您提交的问题,会尽快对该问题进行排查和后续修复~
from react-native-smart-pull-to-refresh-listview.
是从网络获取数据后,endfresh调用。跟代码是_setPaddingBlank 方法中,目前是加了一层保护
_setPaddingBlank = (paddingDisabled) => {
let innerViewRef = this._scrollView.refs.InnerScrollView || this._scrollView._innerViewRef || this._innerScrollView.refs.InnerScrollView || this._innerScrollView._innerViewRef
innerViewRef.measure((ox, oy, width, height, px, py) => {
if (!paddingDisabled && height - this._paddingBlankDistance < this._scrollViewContainerHeight) {
this._paddingBlankDistance = this._scrollViewContainerHeight - (height - this._paddingBlankDistance)
}
else {
this._paddingBlankDistance = 0
}
if(this._footer){
this._footer.setNativeProps({
style: {
marginTop: this._paddingBlankDistance,
}
})
}
})
}
from react-native-smart-pull-to-refresh-listview.
您好,我这里的小米手机暂时还没有试出过您描述的问题。关于这个问题,在上述代码段中增加了this._footer判空的条件语句可以防止报错,但是后续设置marginTop的代码段将不会执行哦。
您试下不判空,通过增加一个定时器的方式是否也能解决您的问题,如果确认可以,我会将此修改提交发布更新版本。
setTimeout( () => {
this._footer.setNativeProps({
style: {
marginTop: this._paddingBlankDistance,
}
})
}, 1 )
from react-native-smart-pull-to-refresh-listview.
嘗試了一下。fetch回來后,延遲2S 設置數據。解決到這個問題。最初在onRefresh的時候,就直接請求網絡獲取數據,如果網絡請求返回很快,就會出現這個問題。謝謝你的即時恢復,thks
from react-native-smart-pull-to-refresh-listview.
感谢您的反馈,将会根据您的描述尝试重现并进行问题排查
from react-native-smart-pull-to-refresh-listview.
您好,当前版本已针对这个问题作了更新,调整了执行onRefresh的时机,现在应已不需要额外设置延迟执行了。
from react-native-smart-pull-to-refresh-listview.
Thks. I will update to 1.6.5.
from react-native-smart-pull-to-refresh-listview.
Related Issues (20)
- 怎么实现QQ下拉加载更多,但固定在之前的位置,我不是跳到顶部 HOT 2
- Jumping when view is rendering HOT 2
- 上拉加载更多,直接就显示正在刷新状态
- ios RN0.42 初次进入界面 粉色的下拉刷新header会滚到屏幕下边 上边留出一大块空白
- setState方法变成了state对象
- 本身的这个头部写了刷新的方法,但是如果我想在头部 定义另外的一个组件,比如说搜索框,应该怎么弄么? HOT 2
- 偶尔会出现页面渲染错误 HOT 1
- Error: Failed to crunch 造成这个原因百度出来的结果是路径名太长,clear 未解决
- [iOS] 添加listItemProps属性后,快速滑动偶尔出现空白 HOT 2
- 无法上拉加载更多 HOT 1
- Cannot read property 'endRefresh' of undefined
- ListItem-ios HOT 1
- 安卓 onScroll 事件无反应
- 加载数据还没出来一瞬间有条灰色的竖线是什么鬼?
- 刚进入页面如何使用自己的加载组件
- 我在第二页,点击按钮执行刷新函数,列表会自动加载下一页,
- listview性能那么差,基本已经被废弃了使用flatlist替代了,为什么作者还要用它进行封装
- 上拉加载的时候有时候会出现数据越界的bug
- 不够一屏的时候,下拉颤抖的很厉害
- ListView has been removed from React Native on RN 0.60.x is not working HOT 1
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-smart-pull-to-refresh-listview.