Home Screen
It contains all the data with static item and carousel component to display all data.
Static Item
<View style={styles.featureContainer}>
<TouchableOpacity onPress={() => this.props.navigation.navigate('Details' , {item: item})}>
<ImageBackground
source={{uri: item.image[0]}}
style={styles.featureItemBackground}
>
...
</ImageBackground>
</TouchableOpacity>
</View>Carousel List
<View style={styles.container}>
<Carousel
data={data}
renderItem={this._renderItem.bind(this)}
sliderWidth={width}
itemWidth={width / 1.5}
/>
</View>RenderItem
Last updated