Gathering detailed insights and metrics for @golden-unicorn/react-swipeable-views-utils
Gathering detailed insights and metrics for @golden-unicorn/react-swipeable-views-utils
Gathering detailed insights and metrics for @golden-unicorn/react-swipeable-views-utils
Gathering detailed insights and metrics for @golden-unicorn/react-swipeable-views-utils
A React component for swipeable views. ❄️
npm install @golden-unicorn/react-swipeable-views-utils
Typescript
Module System
Min. Node Version
JavaScript (67.4%)
TypeScript (32.6%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4,474 Stars
601 Commits
483 Forks
36 Watchers
2 Branches
75 Contributors
Updated on Jul 12, 2025
Latest Version
0.13.4
Package Id
@golden-unicorn/react-swipeable-views-utils@0.13.4
Unpacked Size
38.46 kB
Size
6.64 kB
File Count
10
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
6
1
A React component for swipeable views.
Package | Version | Download | Size (kB gzipped) |
---|---|---|---|
react-swipeable-views | 5.08 | ||
react-swipeable-views-utils | 3.52 | ||
react-swipeable-views-native | ? |
1npm install --save react-swipeable-views
1npm install --save react-swipeable-views-native
Check out the demos from a mobile device (real or emulated). It's tiny (<10 kB gzipped), it quickly renders the first slide, then lazy-loads the others.
1import React from 'react'; 2import SwipeableViews from 'react-swipeable-views'; 3 4const styles = { 5 slide: { 6 padding: 15, 7 minHeight: 100, 8 color: '#fff', 9 }, 10 slide1: { 11 background: '#FEA900', 12 }, 13 slide2: { 14 background: '#B3DC4A', 15 }, 16 slide3: { 17 background: '#6AC0FF', 18 }, 19}; 20 21const MyComponent = () => ( 22 <SwipeableViews> 23 <div style={Object.assign({}, styles.slide, styles.slide1)}> 24 slide n°1 25 </div> 26 <div style={Object.assign({}, styles.slide, styles.slide2)}> 27 slide n°2 28 </div> 29 <div style={Object.assign({}, styles.slide, styles.slide3)}> 30 slide n°3 31 </div> 32 </SwipeableViews> 33); 34 35export default MyComponent;
react-native support is experimental and I have no plan pushing it forward. I start to think that lower level abstraction to share the implementation between the platforms are more appropriate. We have two different implementations of the react-swipeable-views API.
1import React from 'react'; 2import { 3 StyleSheet, 4 Text, 5 View, 6} from 'react-native'; 7 8import SwipeableViews from 'react-swipeable-views-native'; 9// There is another version using the scroll component instead of animated. 10// I'm unsure which one give the best UX. Please give us some feedback. 11// import SwipeableViews from 'react-swipeable-views-native/lib/SwipeableViews.scroll'; 12 13const styles = StyleSheet.create({ 14 slideContainer: { 15 height: 100, 16 }, 17 slide: { 18 padding: 15, 19 height: 100, 20 }, 21 slide1: { 22 backgroundColor: '#FEA900', 23 }, 24 slide2: { 25 backgroundColor: '#B3DC4A', 26 }, 27 slide3: { 28 backgroundColor: '#6AC0FF', 29 }, 30 text: { 31 color: '#fff', 32 fontSize: 16, 33 }, 34}); 35 36const MyComponent = () => ( 37 <SwipeableViews style={styles.slideContainer}> 38 <View style={[styles.slide, styles.slide1]}> 39 <Text style={styles.text}> 40 slide n°1 41 </Text> 42 </View> 43 <View style={[styles.slide, styles.slide2]}> 44 <Text style={styles.text}> 45 slide n°2 46 </Text> 47 </View> 48 <View style={[styles.slide, styles.slide3]}> 49 <Text style={styles.text}> 50 slide n°3 51 </Text> 52 </View> 53 </SwipeableViews> 54); 55 56export default MyComponent;
This project is licensed under the terms of the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 13/30 approved changesets -- score normalized to 4
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
159 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More