ReactXP Carousel Plugin with support for Web, Android and iOS based on react-native-snap-carousel
import Carousel from 'reactxp-carousel';
export class MyCarousel extends Component {
_renderItem ({item, index}) {
return (
<View style={styles.slide}>
<Text style={styles.title}>{ item.title }</Text>
</View>
);
}
render () {
return (
<Carousel
ref={(c) => this._carousel = c}
data={this.state.entries}
renderItem={this._renderItem}
sliderWidth={sliderWidth}
itemWidth={itemWidth}
/>
);
}
}
This project is licensed under the MIT License - see the LICENSE file for details