@@ -29,10 +29,16 @@ var ControlledRefreshableListView = React.createClass({
29
29
propTypes : {
30
30
onRefresh : PropTypes . func . isRequired ,
31
31
isRefreshing : PropTypes . bool . isRequired ,
32
- refreshPrompt : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
32
+ waitingForRelease : PropTypes . bool ,
33
+ onHold : PropTypes . func ,
34
+ onPull : PropTypes . func ,
35
+ pullingPrompt : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
36
+ pullingIndicator : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . element ] ) ,
37
+ holdingPrompt : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
38
+ holdingIndicator : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
33
39
refreshDescription : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
34
- pullingIndicatorComponent : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . element ] ) ,
35
- holdingIndicatorComponent : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . element ] ) ,
40
+ refreshingPrompt : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
41
+ refreshingIndicator : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . element ] ) ,
36
42
refreshingIndicatorComponent : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . element ] ) ,
37
43
minPulldownDistance : PropTypes . number ,
38
44
ignoreInertialScroll : PropTypes . bool ,
@@ -66,7 +72,6 @@ var ControlledRefreshableListView = React.createClass({
66
72
} ,
67
73
componentWillReceiveProps ( nextProps ) {
68
74
if ( ! this . props . isRefreshing && nextProps . isRefreshing && this . isTouching ) {
69
-
70
75
this . waitingForRelease = true
71
76
this . setState ( { waitingForRelease : true } )
72
77
}
@@ -169,26 +174,21 @@ var ControlledRefreshableListView = React.createClass({
169
174
pullingPrompt,
170
175
holdingPrompt,
171
176
refreshingPrompt,
177
+ refreshDescription,
172
178
pullingIndicator,
173
179
holdingIndicator,
174
180
refreshingIndicator,
175
181
} = this . props
176
182
var refreshingIndicatorProps = {
177
183
isRefreshing,
178
- << < << << HEAD
179
- description: refreshDescription ,
180
- prompt : refreshPrompt ,
181
- pulldownDistance : - ( this . lastScrollY || 0 ) ,
182
- = === ===
183
184
pullingIndicator,
184
185
holdingIndicator,
185
186
refreshingIndicator,
186
187
pullingPrompt : pullingPrompt || 'Pull to refresh' ,
187
188
holdingPrompt : holdingPrompt || 'Release to refresh' ,
188
- refreshingPrompt : refreshingPrompt ,
189
+ refreshingPrompt : refreshingPrompt || refreshDescription ,
189
190
isTouching : this . isTouching ,
190
191
isWaitingForRelease : this . isWaitingForRelease ( ) ,
191
- > >>> >>> atom2ueki - master
192
192
}
193
193
return createElementFrom ( this . props . refreshingIndicatorComponent , refreshingIndicatorProps )
194
194
} ,
@@ -221,10 +221,10 @@ var stylesheet = StyleSheet.create({
221
221
fillParent : {
222
222
backgroundColor : 'transparent' ,
223
223
position : 'absolute' ,
224
- top : 0 ,
225
- left : 0 ,
226
- right : 0 ,
227
- bottom : 0 ,
224
+ top : 0 ,
225
+ left : 0 ,
226
+ right : 0 ,
227
+ bottom : 0 ,
228
228
} ,
229
229
// offsetParent: {
230
230
// position: 'relative',
0 commit comments