Li Jie
93b39b7326
Fix refreshing state
Summary:When RefreshControl.refreshing change twice within 250ms, it ignores the second changing.
**Test plan (required)**
```
refresh () {
this.setState({
refreshing: true
})
fetch('/api')
.then(() => {
this.setState({
refreshing: false
})
})
.catch((error) => {
this.setState({
refreshing: false
})
})
}
render() {
return (
<ScrollView
refreshControl={
<RefreshControl
refreshing={this.state.refreshing}
onRefresh={this.refresh.bind(this)}
/>
}>
<TouchableHighlight onPress={this.refresh.bind(this)}>
<View>
<Text>Touch Me!</Text>
</View>
</TouchableHighlight>
</ScrollView>
)
}
```
* Test Case 1: Touch "Touch Me!", if get response less than 250ms, the state is always refreshing.
* Test Case 2: Close network, Touch "Touch Me!", the state is always refreshing.
Closes https://github.com/facebook/react-native/pull/6737
Differential Revision: D3189627
fb-gh-sync-id: 81c1932408e1ab99732b8340a5e3bd557629a66b
fbshipit-source-id: 81c1932408e1ab99732b8340a5e3bd557629a66b
2016-04-17 00:33:25 -07:00
..
2015-04-26 02:17:13 -08:00
2015-08-17 08:46:00 -07:00
2015-06-25 09:17:01 -08:00
2015-09-04 07:00:21 -08:00
2015-12-23 10:07:28 -08:00
2016-01-07 12:03:17 -08:00
2015-12-01 09:00:28 -08:00
2015-11-27 04:03:42 -08:00
2016-02-26 08:18:34 -08:00
2016-04-15 13:24:21 -07:00
2015-06-25 09:15:21 -08:00
2015-06-25 09:15:21 -08:00
2015-12-17 06:46:33 -08:00
2016-01-04 06:38:30 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2015-06-05 09:58:25 -08:00
2015-11-14 10:28:28 -08:00
2015-10-08 11:56:25 -07:00
2016-01-29 06:26:30 -08:00
2016-02-03 11:36:36 -08:00
2016-01-04 06:38:30 -08:00
2015-11-26 08:54:16 -08:00
2015-03-26 02:42:24 -08:00
2016-03-10 10:21:34 -08:00
2015-11-26 08:54:16 -08:00
2015-11-26 08:54:16 -08:00
2016-03-03 12:43:36 -08:00
2016-03-03 12:43:36 -08:00
2015-07-28 07:21:50 -08:00
2016-02-25 09:52:30 -08:00
2015-08-14 04:47:12 -08:00
2016-03-03 12:43:36 -08:00
2015-08-14 01:57:18 -08:00
2016-04-01 06:54:50 -07:00
2015-03-26 02:42:24 -08:00
2015-11-14 10:28:28 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 07:48:26 -08:00
2015-12-08 07:48:26 -08:00
2015-03-26 02:42:24 -08:00
2015-12-10 10:12:29 -08:00
2015-03-26 02:42:24 -08:00
2015-06-03 09:49:35 -08:00
2015-11-14 10:28:28 -08:00
2016-01-04 08:00:29 -08:00
2016-04-17 00:33:25 -07:00
2016-01-04 08:00:29 -08:00
2016-04-16 15:15:25 -07:00
2016-03-21 03:21:27 -07:00
2016-04-04 04:10:24 -07:00
2015-11-25 04:12:34 -08:00
2016-04-01 06:54:50 -07:00
2016-04-01 06:54:50 -07:00
2015-11-25 04:12:34 -08:00
2016-03-10 10:21:34 -08:00
2015-11-03 14:49:30 -08:00
2015-11-03 14:49:30 -08:00
2015-04-29 08:08:45 -08:00
2015-12-10 10:12:29 -08:00
2016-03-21 03:21:27 -07:00
2016-04-04 04:10:24 -07:00
2015-12-21 10:30:39 -08:00
2015-12-21 10:30:39 -08:00
2015-03-26 02:42:24 -08:00
2015-12-21 10:30:39 -08:00
2015-09-02 06:11:24 -08:00
2015-03-26 02:42:24 -08:00
2015-03-26 02:42:24 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2015-11-05 09:39:30 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-09-02 06:11:24 -08:00
2015-07-07 06:15:20 -08:00
2016-02-16 16:51:39 -08:00
2016-02-16 16:51:39 -08:00
2015-03-26 02:42:24 -08:00
2015-12-21 10:18:47 -08:00
2016-03-07 09:31:26 -08:00
2016-02-26 08:20:34 -08:00
2016-04-08 17:17:23 -07:00
2015-03-26 02:42:24 -08:00
2016-03-16 10:03:26 -07:00
2015-09-02 06:11:24 -08:00
2015-09-04 07:00:21 -08:00
2015-08-13 07:56:41 -08:00
2016-03-16 10:18:22 -07:00
2016-03-22 10:58:29 -07:00