0
100%の高さを取って私のリストビューコンテナは、リスト中の含有量が少ないその場合であっても、100%の高さを取っています。マイコード
:
<View style={{ flex: 1, width: '95%', flexDirection: 'row', justifyContent: 'center', alignSelf: 'center' }}>
<Card style={{ width: '95%', alignSelf: 'center', marginTop: 10 }}>
<ListView
dataSource={this.state.dataSource}
renderRow={(item) =>
<CardItem
key={`transaction-${item.data.transactionid}`}
>
// my list code was here
</CardItem>}
ListFooterComponent={this.renderFooter}
onRefresh={this._onRefresh}
refreshing={this.state.refreshing}
onEndReached={this.fetchGoalTransactions}
onEndReachedThreshold={50}
/>
</Card>
あなたの 'Card'コンポーネントスタイルに' flex:1'を追加するか、 'ListView'のスタイルを作成してそこにポップアップさせてみてください。 –