1
1
import React , { Component } from "react" ;
2
+ import PropTypes from 'prop-types' ;
2
3
import {
3
4
ActivityIndicator ,
4
5
Dimensions ,
@@ -85,63 +86,63 @@ export default class UltimateListView extends Component {
85
86
} ;
86
87
87
88
static propTypes = {
88
- initialNumToRender : React . PropTypes . number ,
89
- horizontal : React . PropTypes . bool ,
89
+ initialNumToRender : PropTypes . number ,
90
+ horizontal : PropTypes . bool ,
90
91
91
- firstLoader : React . PropTypes . bool ,
92
- scrollEnabled : React . PropTypes . bool ,
93
- onFetch : React . PropTypes . func ,
94
- enableEmptySections : React . PropTypes . bool ,
92
+ firstLoader : PropTypes . bool ,
93
+ scrollEnabled : PropTypes . bool ,
94
+ onFetch : PropTypes . func ,
95
+ enableEmptySections : PropTypes . bool ,
95
96
96
97
//Custom ListView
97
- header : React . PropTypes . func ,
98
- item : React . PropTypes . func ,
99
- sectionHeaderView : React . PropTypes . func ,
100
- paginationFetchingView : React . PropTypes . func ,
101
- paginationAllLoadedView : React . PropTypes . func ,
102
- paginationWaitingView : React . PropTypes . func ,
103
- emptyView : React . PropTypes . func ,
104
- separator : React . PropTypes . func ,
98
+ header : PropTypes . func ,
99
+ item : PropTypes . func ,
100
+ sectionHeaderView : PropTypes . func ,
101
+ paginationFetchingView : PropTypes . func ,
102
+ paginationAllLoadedView : PropTypes . func ,
103
+ paginationWaitingView : PropTypes . func ,
104
+ emptyView : PropTypes . func ,
105
+ separator : PropTypes . func ,
105
106
106
107
//Refreshable
107
- refreshable : React . PropTypes . bool ,
108
- refreshableMode : React . PropTypes . string ,
108
+ refreshable : PropTypes . bool ,
109
+ refreshableMode : PropTypes . string ,
109
110
110
111
//RefreshControl
111
- refreshableTitle : React . PropTypes . string ,
112
- refreshableColors : React . PropTypes . array ,
113
- refreshableProgressBackgroundColor : React . PropTypes . string ,
114
- refreshableSize : React . PropTypes . string ,
115
- refreshableTintColor : React . PropTypes . string ,
116
- customRefreshControl : React . PropTypes . func ,
112
+ refreshableTitle : PropTypes . string ,
113
+ refreshableColors : PropTypes . array ,
114
+ refreshableProgressBackgroundColor : PropTypes . string ,
115
+ refreshableSize : PropTypes . string ,
116
+ refreshableTintColor : PropTypes . string ,
117
+ customRefreshControl : PropTypes . func ,
117
118
118
119
//Advanced RefreshView
119
- refreshableTitlePull : React . PropTypes . string ,
120
- refreshableTitleRefreshing : React . PropTypes . string ,
121
- refreshableTitleRelease : React . PropTypes . string ,
122
- customRefreshView : React . PropTypes . func ,
123
- customRefreshViewHeight : React . PropTypes . number ,
124
- displayDate : React . PropTypes . bool ,
125
- dateFormat : React . PropTypes . string ,
126
- dateTitle : React . PropTypes . string ,
127
- arrowImage : React . PropTypes . string ,
120
+ refreshableTitlePull : PropTypes . string ,
121
+ refreshableTitleRefreshing : PropTypes . string ,
122
+ refreshableTitleRelease : PropTypes . string ,
123
+ customRefreshView : PropTypes . func ,
124
+ customRefreshViewHeight : PropTypes . number ,
125
+ displayDate : PropTypes . bool ,
126
+ dateFormat : PropTypes . string ,
127
+ dateTitle : PropTypes . string ,
128
+ arrowImage : PropTypes . string ,
128
129
129
130
//Pagination
130
- pagination : React . PropTypes . bool ,
131
- autoPagination : React . PropTypes . bool ,
132
- allLoadedText : React . PropTypes . string ,
131
+ pagination : PropTypes . bool ,
132
+ autoPagination : PropTypes . bool ,
133
+ allLoadedText : PropTypes . string ,
133
134
134
135
//Spinner
135
- spinnerColor : React . PropTypes . string ,
136
- fetchingSpinnerSize : React . PropTypes . any ,
137
- waitingSpinnerSize : React . PropTypes . any ,
138
- waitingSpinnerText : React . PropTypes . string ,
136
+ spinnerColor : PropTypes . string ,
137
+ fetchingSpinnerSize : PropTypes . any ,
138
+ waitingSpinnerSize : PropTypes . any ,
139
+ waitingSpinnerText : PropTypes . string ,
139
140
140
141
//Pagination Button
141
- paginationBtnText : React . PropTypes . string ,
142
+ paginationBtnText : PropTypes . string ,
142
143
143
144
//GridView
144
- numColumns : React . PropTypes . number
145
+ numColumns : PropTypes . number
145
146
} ;
146
147
147
148
constructor ( props ) {
@@ -514,4 +515,4 @@ const styles = StyleSheet.create({
514
515
alignItems : 'flex-start' ,
515
516
flexWrap : 'wrap'
516
517
}
517
- } ) ;
518
+ } ) ;
0 commit comments