Skip to content

Commit c14a234

Browse files
committed
fix #35
1 parent 0084e29 commit c14a234

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

SmartRefreshControl.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ class SmartRefreshControl extends Component {
4040
this.dispatchCommand('finishRefresh',[delayed,success])
4141
}
4242
dispatchCommand=(commandName, params)=>{
43-
UIManager.dispatchViewManagerCommand(this.findNode(), UIManager.SmartRefreshLayout.Commands[commandName], params);
43+
UIManager.dispatchViewManagerCommand(this.findNode(),
44+
(UIManager.getViewManagerConfig ? UIManager.getViewManagerConfig("SmartRefreshLayout"): UIManager.SmartRefreshLayout).Commands[commandName],
45+
params);
4446
}
4547
findNode=()=>{
4648

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-smartrefreshlayout",
3-
"version": "0.6.6",
3+
"version": "0.6.7",
44
"description": "基于android SmartRefreshLayout的封装",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)