2016-07-28 18 views
2

[email protected]升級後活動指示燈RefreshControl有時會出現在iOS的ScrollView的右上角。 我是正確的文件說,使用RefreshControl:RefreshControl有時不會隱藏並在iOS上行爲怪異

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

,這裏是在不清爽什麼有時發生的事情:

enter image description here

現在我正在[email protected]和這個指標仍然是討厭我。

我是唯一一個面對這個問題的人嗎?

回答

1

通過設定背景透明色解決...

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