Skip to content

Commit 3ddc0be

Browse files
committed
fix bug #11
1 parent c8dccdf commit 3ddc0be

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

SmartRefreshControl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ SmartRefreshControl.propTypes = {
9292
enableRefresh: PropTypes.bool,//是否启用下拉刷新功能
9393
HeaderComponent:PropTypes.object,
9494
headerHeight:PropTypes.number,
95+
overScrollBounce:PropTypes.bool,//是否使用越界回弹
96+
pureScroll:PropTypes.bool,//是否使用纯滚动模式
9597
primaryColor:PropTypes.string,
9698
autoRefresh:PropTypes.shape({
9799
refresh:PropTypes.bool,

android/src/main/java/com/lmy/smartrefreshlayout/SmartRefreshLayoutManager.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,15 @@ public Map<String, Integer> getCommandsMap() {
8080
COMMAND_FINISH_REFRESH_NAME,COMMAND_FINISH_REFRESH_ID
8181
);
8282
}
83-
83+
/**
84+
* 是否启用越界回弹
85+
* @param view
86+
* @param overScrollBounce
87+
*/
88+
@ReactProp(name = "overScrollBounce",defaultBoolean = true)
89+
public void setOverScrollBounce(ReactSmartRefreshLayout view,boolean overScrollBounce){
90+
view.setEnableOverScrollBounce(overScrollBounce);
91+
}
8492
/**
8593
* 设置为纯滚动
8694
* @param view

0 commit comments

Comments
 (0)