私はリストビューを持っています。私は水平スクロールビューを使ってギャラリーを表示しています。ギャラリーを持っているlistViewの最初の13行は完全にうまく表示されていますが、残りの画像は空白です。プレースホルダだけが存在します。何がその理由かもしれない。水平スクロール表示がすべての画像を表示していません。React Native
<View>
<ScrollView
style={styles.container}
automaticallyAdjustInsets={false}
horizontal={true}
decelerationRate={0}
snapToInterval={CARD_WIDTH + CARD_MARGIN*2}
snapToAlignment="start"
contentContainerStyle={styles.contentT}
pagingEnabled={true}
showsHorizontalScrollIndicator={false}
>
{_this.props.media.first_five_photos.map(function(photo) {
return (<View style={[{width:width, height: _this.props.media.height},styles.card]} key={photo.id}>
<Text>
<Image
source={{uri: photo.image_url}}
style={{width:width, height: _this.props.media.height}}/>
</Text>
</View>)
})}
</ScrollView>
<View style={{position: "absolute",right: 15, top: (this.props.media.height/2)-20}}>
<Text >
<Image style={{height: 30,width:30}} source={require("../assets/white-img-slide.png") }/>
</Text>
</View>
</View>
画像がうまくいけば、その画像の幅、高さを確認してください。 –
私はそれが動作する単一の画像で行うとき、または私がそれが動作する単一の画像を繰り返すときに、動的URLですべてがここにあります。ただ空白を返します。 –
https://rnplay.org/ここからテストアプリを作成できますか? – stereodenis