Skip to content

Commit

Permalink
fix #35
Browse files Browse the repository at this point in the history
  • Loading branch information
2534290808 committed May 21, 2019
1 parent 0084e29 commit c14a234
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion SmartRefreshControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class SmartRefreshControl extends Component {
this.dispatchCommand('finishRefresh',[delayed,success])
}
dispatchCommand=(commandName, params)=>{
UIManager.dispatchViewManagerCommand(this.findNode(), UIManager.SmartRefreshLayout.Commands[commandName], params);
UIManager.dispatchViewManagerCommand(this.findNode(),
(UIManager.getViewManagerConfig ? UIManager.getViewManagerConfig("SmartRefreshLayout"): UIManager.SmartRefreshLayout).Commands[commandName],
params);
}
findNode=()=>{

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-smartrefreshlayout",
"version": "0.6.6",
"version": "0.6.7",
"description": "基于android SmartRefreshLayout的封装",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit c14a234

Please sign in to comment.