RefreshControl 有时不隐藏并且在 iOS 上表现得很奇怪

RefreshControl sometimes does not hide and acts weirdly on iOS

react-native@0.26 升级后 activity RefreshControl 的指示器有时会出现在 iOS 上 ScrollView 的右上角。 我按照文档所述正确使用 RefreshControl:

...
<ScrollView
  style={styles.container}
  refreshControl={
    <RefreshControl
      refreshing={this.state.isRefreshing}
      onRefresh={this.onPullToRefresh}
    />
  }>
  <View>
    ...
  </View>
</ScrollView>
...

下面是不刷新时有时会发生的情况:

现在我是 运行 react-native@0.30.0 这个指标仍然让我很烦。

只有我遇到这个问题吗?

通过将背景设置为透明色解决...

...
<ScrollView
      style={styles.container}
      refreshControl={
        <RefreshControl
          refreshing={this.state.isRefreshing}
          onRefresh={this.onPullToRefresh}
          style={{backgroundColor: 'transparent'}}
        />
      }>
...