Closed mateusnunesnunes closed 4 years ago
Seems like the View wrapping the AppIntroSlider Component must have height defined in its style.
<View style={{ height: '100%' }}>
<AppIntroSlider renderItem={this._renderItem} data={this.state.slides} keyExtractor={this._keyExtractor} />
</View>
You need to add the background color to the View in _renderItem.
So the _renderItem function will become:
_renderItem = ({ item }) => { return ( <View style={{backgroundColor: item.backgroundColor}}> ... ); }
👍
Closing since it seems answered.
I had a problem here in AppIntroSlider, its returns a white screen, I already set data as slides but it doesn't works. Here is my code: