We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32d28d0 commit 4f396b1Copy full SHA for 4f396b1
SmartRefreshControl.js
@@ -6,13 +6,14 @@ import {
6
requireNativeComponent,
7
findNodeHandle,
8
UIManager,
9
- NativeModules
+ NativeModules,
10
+ Platform,
11
} from 'react-native';
12
import ClassicsHeader from "./ClassicsHeader";
13
import {ViewPropTypes,PropTypes} from './Util'
14
import DefaultHeader from "./DefaultHeader";
15
-const SPModule = NativeModules.SpinnerStyleModule;
16
+const SPModule =Platform.OS === 'android' ? NativeModules.SpinnerStyleModule : {};
17
18
const SmartRefreshLayout = requireNativeComponent('SmartRefreshLayout', SmartRefreshControl);
19
0 commit comments