diff --git a/SmartRefreshControl.js b/SmartRefreshControl.js index 75ab8f4..9fbdc44 100644 --- a/SmartRefreshControl.js +++ b/SmartRefreshControl.js @@ -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=()=>{ diff --git a/package.json b/package.json index c597d28..b085433 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-smartrefreshlayout", - "version": "0.6.6", + "version": "0.6.7", "description": "基于android SmartRefreshLayout的封装", "main": "index.js", "scripts": {