tv-carousel
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

tv-carousel

使用


$ yarn install tv-carousel
import Carousel from 'tv-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={300}
              itemWidth={300}
            />
        );
    }
}

Package Sidebar

Install

npm i tv-carousel

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

89.7 kB

Total Files

17

Last publish

Collaborators

  • liuxiang719