reactxp-carousel

0.0.9 • Public • Published

reactxp-carousel npm version

ReactXP Carousel Plugin with support for Web, Android and iOS based on react-native-snap-carousel

Documentation

Prerequisites

Samples

Usage

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}
            />
        );
    }
}

License

This project is licensed under the MIT License - see the LICENSE file for details

Readme

Keywords

none

Package Sidebar

Install

npm i reactxp-carousel@0.0.9

Version

0.0.9

License

MIT

Unpacked Size

9.79 kB

Total Files

7

Last publish

Collaborators

  • fulanko
  • luxbit