File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,24 @@ import {
66 requireNativeComponent ,
77 findNodeHandle ,
88 UIManager ,
9+ NativeModules
910} from 'react-native' ;
1011import ClassicsHeader from "./ClassicsHeader" ;
1112import { ViewPropTypes , PropTypes } from './Util'
1213import DefaultHeader from "./DefaultHeader" ;
1314
15+ const SPModule = NativeModules . SpinnerStyleModule ;
16+
1417const SmartRefreshLayout = requireNativeComponent ( 'SmartRefreshLayout' , SmartRefreshControl ) ;
1518
1619class SmartRefreshControl extends Component {
20+ static constants = {
21+ "TRANSLATE" :SPModule . translate ,
22+ "SCALE" :SPModule . scale ,
23+ "FIX_BEHIND" :SPModule . fixBehind ,
24+ "FIX_FRONT" :SPModule . fixFront ,
25+ "MATCH_LAYOUT" :SPModule . matchLayout ,
26+ }
1727
1828
1929 /**
@@ -78,6 +88,7 @@ SmartRefreshControl.propTypes = {
7888 enableRefresh : PropTypes . bool , //是否启用下拉刷新功能
7989 HeaderComponent :PropTypes . object ,
8090 headerHeight :PropTypes . number ,
91+ primaryColor :PropTypes . string ,
8192 autoRefresh :PropTypes . shape ( {
8293 refresh :PropTypes . bool ,
8394 time :PropTypes . number ,
You can’t perform that action at this time.
0 commit comments