
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
react-native-parallax-swiper
Advanced tools
Full Screen Parallax Swiper Allowing Arbitrary UI Injection
This project is currently in beta and APIs are subject to change.
Configurable parallax swiper based on an iOS pattern. Uses Native Driver for super smooth parallax.
☝️ React Native Zoomable for image zoom. Artwork by Daniel Mackey.
You can see this effect in apps like:
Run npm install react-native-parallax-swiper --save
import ParallaxSwiper from 'react-native-parallax-swiper';
<ParallaxSwiper
parallaxStrength={80}
dividerWidth={8}
dividerColor="black"
backgroundColor="#bae"
onMomentumScrollEnd={() => console.log('💩')}
>
<View
style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center',
}}
backgroundImage={'https://goo.gl/7Mvjji'}
>
<Text>Pass Arbitrary JSX to ParallaxSwiper as Children</Text>
</View>
</ParallaxSwiper>
Prop | Type | Default | Description |
---|---|---|---|
parallaxStrength | Number | 80 | This number determines how slow parallax’ing element moves. Lower number yields a subtler parallax effect, higher number increases parallax effect. |
dividerWidth | Number | 8 | The width of the divider between each slide. (horizontal only) |
dividerColor | String | black | Color of divider. |
backgroundImage | String | N/A | The image source. If used this becomes the background image that parallaxes. (remote URL only for now) |
backgroundImageResizeMode | String | cover | Determines how to resize the image. |
backgroundColor | String | black | The main view’s background color. |
onMomentumScrollEnd | Function | N/A | Called when ScrollView stops scrolling. |
children | ReactComponents | N/A | JSX to inject into the slide. |
vertical | Boolean | false | When true, ParallaxSwiper’s children are arranged vertically in a column instead of horizontally in a row. |
showsHorizontalScrollIndicator | Boolean | false | When true, shows a horizontal scroll indicator. The default value is false. |
showsVerticalScrollIndicator | Boolean | false | When true, shows a vertical scroll indicator. The default value is false. |
<Slide/>
component to replace arbitrary React Children Components? 🤔Copyright (c) 2017 Zachary Gibson Licensed under the MIT license.
FAQs
Full Screen Parallax Swiper Allowing Arbitrary UI Injection
The npm package react-native-parallax-swiper receives a total of 66 weekly downloads. As such, react-native-parallax-swiper popularity was classified as not popular.
We found that react-native-parallax-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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.