Skip to content

Commit 4f396b1

Browse files
committed
fix bug #7
1 parent 32d28d0 commit 4f396b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SmartRefreshControl.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import {
66
requireNativeComponent,
77
findNodeHandle,
88
UIManager,
9-
NativeModules
9+
NativeModules,
10+
Platform,
1011
} from 'react-native';
1112
import ClassicsHeader from "./ClassicsHeader";
1213
import {ViewPropTypes,PropTypes} from './Util'
1314
import DefaultHeader from "./DefaultHeader";
1415

15-
const SPModule = NativeModules.SpinnerStyleModule;
16+
const SPModule =Platform.OS === 'android' ? NativeModules.SpinnerStyleModule : {};
1617

1718
const SmartRefreshLayout = requireNativeComponent('SmartRefreshLayout', SmartRefreshControl);
1819

0 commit comments

Comments
 (0)