New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rn-swiper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-swiper

Swiper Component For React Native

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

RN-Swiper

Swiper Component For React Native


DEMO

import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View
} from 'react-native';
import Swiper from './components/common/swiper';

export default class SwiperDemo extends Component {
    constructor(){
        super();
        this.state = {
            thumbs: [{
                uri: 'https://img.alicdn.com/simba/img/TB1bTybOpXXXXc6aFXXSutbFXXX.jpg',
                title: '书房一定要有腔调'
            },{
                uri: 'https://img.alicdn.com/tps/TB1lI3hPpXXXXceXFXXXXXXXXXX-520-280.jpg',
                title: '颜值越高责任越大'
            },{
                uri: 'https://ossgw.alicdn.com/creatives-assets/19f00da6-a5e5-42b8-bb17-a7ade8f7aa01.png',
                title: '最新人气单品'
            },{
                uri: 'https://img.alicdn.com/tps/TB1lI3hPpXXXXceXFXXXXXXXXXX-520-280.jpg',
                title: '颜值越高责任越大'
            }]
        }
    }
    render(){
        return(<View>
            <Swiper thumbs={ this.state.thumbs } />
        </View>)
    }
}

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

OPTION

ParameterTypeDefaultDescription
thumbsArray*Required
autoplayBooleantrue是否自动切换swiper
delayNumber4000每个swiper自切换的时间间隔
hasTitleBooleanfalse是否有标题,如果设置true;thumbs要传入对应的值

Keywords

FAQs

Package last updated on 20 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc