![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-native-pg-swiper
Advanced tools
Page Swiper component for React Native.
$ npm i react-native-pg-swiper --save
$ yarn add react-native-pg-swiper
app.js
, like this:import React from 'react';
import Swiper from 'react-native-pg-swiper';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
var styles = StyleSheet.create({
wrapper: {
},
slide1: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#9DD6EB',
},
slide2: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#97CAE5',
},
slide3: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#92BBD9',
},
text: {
color: '#fff',
fontSize: 30,
fontWeight: 'bold',
}
})
changePage(index) {
this.refs.swiper.changePage(index);
}
class Swiper extends React.Component {
render() {
return (
<Swiper ref='swiper' style={styles.wrapper}>
<View style={styles.slide1}>
<Text style={styles.text}>Hello Swiper</Text>
</View>
<View style={styles.slide2}>
<Text style={styles.text}>Beautiful</Text>
</View>
<View style={styles.slide3}>
<Text style={styles.text}>And simple</Text>
</View>
</Swiper>
);
}
}
AppRegistry.registerComponent('swiper', () => Swiper);
Prop | Default | Type | Description |
---|---|---|---|
index | 0 | number | Index number of initial slide. |
pager | true | boolean | Show pager. |
onPageChange | function | Callback when page changes. | |
activeDotColor | blue | string | CSS color of the dot for the current page. |
threshold | 25 | number | Threshold before the swiper captures the pan responder |
disableLastSwipe | false | boolean | Disable Swipe effect on start and end page |
ref | `` | string | Give Reference to Swiper to use changePage method |
Prop | params | Type | Description |
---|---|---|---|
changePage | index | function | Change To Particular Page. Usage this.refs.swiper.changePage(index); |
See code in examples.
FAQs
Page Swiper component for React Native.
The npm package react-native-pg-swiper receives a total of 1 weekly downloads. As such, react-native-pg-swiper popularity was classified as not popular.
We found that react-native-pg-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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.