
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
react-native-scroll-view-parallax
Advanced tools
NOTE: This module requires React Native 0.8+
npm install --save react-native-scroll-view-parallax
Note: Parallax.Image
elements must be direct descendants of Parallax.ScrollView
import Parallax from 'react-native-scroll-view-parallax'
export default class App extends Component {
render () {
return (
<Parallax.ScrollView style={styles.container}>
<Parallax.Image
style={styles.image}
overlayStyle={styles.overlay}
source={{ uri: 'http://loremflickr.com/640/480' }}
parallaxFactor={0.5}
>
<Text>This is optional overlay content</Text>
</Parallax.Image>
))}
</Parallax.ScrollView>
)
}
}
Parallax.ScrollView
PropertiesAny ScrollView
property and the following:
Prop | Description | Default |
---|---|---|
scrollViewComponent | What underlying component to compose around, must be ScrollView compatible. | ScrollView |
Parallax.Image
PropertiesAny Image
property and the following:
Prop | Description | Default |
---|---|---|
onPress | Fired when element is tapped. | None |
imageStyle | Optional image style, width and height styles are set automatically. | None |
overlayStyle | Optional overlay style, might be useful if you want a shaded background for better readability. | None |
parallaxFactor | The speed of the parallax effect. Larger values require taller images or they will be zoomed in. | 0.2 |
Check full example in the Example
folder.
MIT License. © Joel Arvidsson
FAQs
Parallax effects for React Native using Animated API
We found that react-native-scroll-view-parallax 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.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform — cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.