Skip to content

Commit

Permalink
fix bug(#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
2534290808 committed Jun 25, 2018
1 parent f3237e1 commit d343fa2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ public void addViews(ReactSmartRefreshLayout parent, List<View> views) {
}

@Override
protected void addEventEmitters(ThemedReactContext reactContext, ReactSmartRefreshLayout view) {
protected void addEventEmitters(ThemedReactContext reactContext,final ReactSmartRefreshLayout view) {


/**
* 必须设置OnRefreshListener,如果没有设置,
* 则会自动触发finishRefresh
Expand All @@ -206,6 +208,10 @@ public void onRefresh(RefreshLayout refreshLayout) {
}
});
view.setOnMultiPurposeListener(new SimpleMultiPurposeListener() {
private int getTargetId(){
return view.getId();
}

@Override
public void onHeaderPulling(RefreshHeader header, float percent, int offset, int headerHeight, int extendHeight) {
WritableMap writableMap = Arguments.createMap();
Expand Down

0 comments on commit d343fa2

Please sign in to comment.