npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

native-cmos-carousel

v0.0.3

Published

#### 安装: ```bash npm install native-cmos-carousel ```

Readme

React Native 轮播组件使用介绍

安装:

npm install native-cmos-carousel

参数:

Name | propType | default value | description --- | --- | --- | --- autoplay | bool | true | 自动播放 delay | number | 4000 | 延时 currentPage | number | 0 | 初始化当前页位置 bullets | bool | false | 是否显示页面小圆点 bulletStyle | style | null | 小圆点样式 bulletsContainerStyle | style | null | 小圆点容器样式 chosenBulletStyle | style | null | 选中小圆点的样式 height | number | null | 轮播图高度设置,默认为屏幕高度 width | number | null | 轮播图宽度设置,默认为屏幕宽度

使用示例:

    import React, { Component } from 'react';
    import {
      AppRegistry,
      StyleSheet,
      Text,
      View,
      Dimensions,
      Image,
    } from 'react-native';
    import Carousel from 'native-cmos-carousel';
    const { width, height } = Dimensions.get('window');

    export default class carouselTest extends Component {
      constructor(props) {
        super(props);
        this.state = {
          size: { width, height },
        };
      }

      render() {
        return (
          <View style={{ flex: 1 ,backgroundColor:'white'}}>
            <Carousel
              height={height/3}
              delay={2000}
              autoplay
              bullets
              bulletStyle={{backgroundColor:'white'}}
            >
              <Image
              style={{width:width,height:height/3}}
            source={{uri: 'http://www.10086.cn/cmpop/images/index/ad1/201609/20160914171036633bj1.jpg'}}
          />
              <Image
              style={{width:width,height:height/3}}
            source={{uri: 'http://www.10086.cn/cmpop/images/index/ad1/201607/201607291033143254wN.jpg'}}
          />
              <Image
              style={{width:width,height:height/3}}
            source={{uri: 'http://www.10086.cn/cmpop/images/index/ad1/201608/20160805134750658S64.jpg'}}
          />
            </Carousel>
          </View>
        );
      }
    }

    AppRegistry.registerComponent('carouselTest', () => carouselTest);

更新日志:

版本号 | 日期 | 说明 --- | --- | --- 0.0.2 | 2017-4-25 | 增加小圆点样式配置接口,小圆点是否可以点击等 0.0.3 | 2017-4-27 | 解决滑动过程中卡顿现象,安卓与iOS方法执行不同步等问题,增加宽度高度配置等