
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Swiper Component For React Native
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);
Parameter | Type | Default | Description |
---|---|---|---|
thumbs | Array | *Required | |
autoplay | Boolean | true | 是否自动切换swiper |
delay | Number | 4000 | 每个swiper自切换的时间间隔 |
hasTitle | Boolean | false | 是否有标题,如果设置true;thumbs要传入对应的值 |
FAQs
Swiper Component For React Native
The npm package rn-swiper receives a total of 1 weekly downloads. As such, rn-swiper popularity was classified as not popular.
We found that rn-swiper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.