在我的應用程序index.io.js裏面只有1 ScrollView
被包裝在View
下的render
函數下。有時我可以滾動到ScrollView的最底部,並將屏幕保持在那裏。然而,ScrollView會彈回到屏幕的頂部,有時無法停留在底部。反應本機ScrollView沒有滾動到底部有時
有誰知道發生了什麼?謝謝。
render() {
return <View style={{flex: 1}}>
<ScrollView>
<Text>234</Text>
<Text>234</Text>
<Text>234</Text>
<Text>234</Text>
// .... repeat so many times ...
</ScrollView>
</View>
}
PS:我的RN是0.28.0,iOS的部署目標爲8.0
實際上解決了muy問題。有我的投票。 – EnriqueDev
對我們來說,設置'contentContainerStyle = {{flex:1}}'實際上解決了我們的問題! – Cole