
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
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 that uses Native Driver for super smooth parallax.
Yeah, another parallax component, cause you know parallaxers are lit and stuff right? Nah, this component was created to emulate a specific iOS pattern that no react-native-parallax-whatever previously delivered. Native ScrollView, paging, and native driver for 60FPS. You can see this pattern in apps like iOS Camera Roll, Twitter Moments, Kylie Jenner’s app, and the Vevo app.
☝️ React Native Zoomable for image zoom. Artwork by Daniel Mackey.
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? 🤔Hit me up on Twitter, or create an issue.
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 15 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.
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.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.