
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
react-native-page-swiper-fork
Advanced tools
Page Swiper component for React Native forked from https://github.com/fixt/react-native-page-swiper.git. that allows customization of inactive dot color
Page Swiper component for React Native.
$ npm i react-native-page-swiper-fork --save
react-native
first$ npm i react-native -g
$ react-native init myproject
myproject/index.ios.js
, like this:var Swiper = require('react-native-page-swiper-fork')
// es6
// import Swiper from 'react-native-page-swiper-fork'
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
View,
} = React;
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',
}
})
var swiper = React.createClass({
render: function() {
return (
<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. | |
inactiveDotColor | lightgray | string | CSS color of the inactive dots. |
inactiveBorder | white | string | CSS color of the inactive dots' border. |
activeDotColor | blue | string | CSS color of the dot for the current page. |
dotsPosition | bottom | string | Can be top or bottom - positioning of dots on slide. |
See code in examples.
Feel free to contact us or create an issue
Inspired by leecade/react-native-swiper & brentvatne/react-native-scrollable-tab-view.
Forked from fixt/react-native-page-swiper
FAQs
Page Swiper component for React Native forked from https://github.com/fixt/react-native-page-swiper.git. that allows customization of inactive dot color
The npm package react-native-page-swiper-fork receives a total of 2 weekly downloads. As such, react-native-page-swiper-fork popularity was classified as not popular.
We found that react-native-page-swiper-fork 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.