react-native/React
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
..
Base Set autoresizingMask to redraw root when resizing RN window 2016-04-14 14:27:23 -07:00
Executors Avoid crashing when executor is invalidated before it finishes loading RA Bundle 2016-04-08 07:34:28 -07:00
Layout Import css-layout measure mode changes from pull request #163 2016-04-12 07:02:29 -07:00
Modules Fix spelling of descendant 2016-04-13 08:44:29 -07:00
Profiler Use indirect jumps on armv7 2016-04-04 06:49:19 -07:00
React.xcodeproj Fix OSS project configuration 2016-03-30 03:12:27 -07:00
Views Fix refreshing state 2016-04-17 00:33:25 -07:00