First of all: nice component, thank you for sharing.
My expected behaviour would be to have items being ListView components.
I copy/pasted you example which works perfectly.
However, If I put a simple ListView instead of the Images for example: nothing renders at all... Not even an error... So I am a bit confused.
This would be what I am trying to achieve:
_renderItem(data, index){
return (
<View style={{height: slideHeight}}>
<View style={{flex:1, backgroundColor:'gray', borderTopLeftRadius:entryBorderRadius, borderTopRightRadius:entryBorderRadius}}>
<ListView dataSource={this.state.dataSource} renderRow={(rowData) => <Text style={{margin:20, fontSize:30, fontWeight:'bold'}}>{rowData}</Text>}/> // Nothing renders with this component
</View>
<View style={{ justifyContent:'center', paddingVertical:20, paddingHorizontal:16, backgroundColor:'white', borderBottomLeftRadius:entryBorderRadius, borderBottomRightRadius:entryBorderRadius }}>
<Text style={{ color:'#1a1917', fontSize:13, fontWeight:'bold', letterSpacing: 0.5 }} numberOfLines={2}> { data.toUpperCase() } </Text>
</View>
</View>
);
}
render(){
return (
<ScrollView style={{flex:100, paddingTop:10}}>
<Carousel
items={this.state.numberOfLists}
firstItem={0}
inactiveSlideScale={1}
inactiveSlideOpacity={1}
enableMomentum={false}
swipeThreshold={sliderWidth/6}
renderItem={this._renderItem}
sliderWidth={sliderWidth}
itemWidth={itemWidth}
slideStyle={{flexDirection:'column', width:itemWidth, paddingHorizontal:itemHorizontalMargin}}
containerCustomStyle={{marginBottom: 0}}
contentContainerCustomStyle={{}}
showsHorizontalScrollIndicator={false}
snapOnAndroid={true}
removeClippedSubviews={false}
/>
</ScrollView>
)